question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simultaneous linear and angular velocity

See original GitHub issue

Hi everyone,

Is it possible to publish messages to the cmd_velocity_world topic that are composed of a linear and angular components, such as the example below?:

rostopic pub /cf0/cmd_velocity_world crazyflie_driver/VelocityWorld "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: 'cf0'
vel:
  x: 0.40
  y: 0.0
  z: 0.0
yawRate: 30.0" -r 10

I am asking this because when I publish such a velocity I would expect the cf to move in a circle, i.e., moving in its x direction while the yaw changes. However, what I observe is the cf rotating as it drifts in one direction. Also when I publish simple velocity msgs, meaning only linear or only angular the cf moves as expected, moving in its x direction when the msg published is a linear velocity, and rotating on the spot when every value is zero expect yawRate. I should say I have a Flow Deck. Also I am not using the vicon, as I am having quite some trouble to get a very stable point cloud at the moment. This is indeed weird because when I was using these packages (–> https://github.com/whoenig/crazyflie_ros) I could do this no problem… By the way these are my parameters

      world_frame: "/world"
      # Logging configuration (Use enable_logging to actually enable logging)
      genericLogTopics: ["log1"]
      genericLogTopicFrequencies: [10]
      genericLogTopic_log1_Variables: ["pm.vbat"]
      # firmware parameters for all drones (use crazyflieTypes.yaml to set per type, or
      # allCrazyflies.yaml to set per drone)
      firmwareParams:
        commander:
          enHighLevel: 1
        stabilizer:
          estimator: 2 # 1: complementary, 2: kalman
          controller: 1 # 1: PID, 2: mellinger
        ring:
          effect: 16 # 6: double spinner, 7: solid color, 16: packetRate
          solidBlue: 255 # if set to solid color
          solidGreen: 0 # if set to solid color
          solidRed: 0 # if set to solid color
          headlightEnable: 0
        locSrv:
          extPosStdDev: 1e-3
          extQuatStdDev: 0.5e-1
        kalman:
          resetEstimation: 1
      # tracking
      motion_capture_type: "none" # one of none,vicon,optitrack,qualisys,vrpn
      object_tracking_type: "motionCapture" # one of motionCapture,libobjecttracker
      send_position_only: False # set to False to send position+orientation; set to True to send position only
      vicon_host_name: "192.168.10.1:801"
      # optitrack_host_name: "optitrack"
      # qualisys_host_name: "10.0.5.219"
      # qualisys_base_port: 22222
      # vrpn_host_name: "vicon"
      save_point_clouds: ~/pointCloud.ot
      print_latency: False
      write_csvs: False
      force_no_cache: False
      enable_parameters: True
      enable_logging: True

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
whoenigcommented, Nov 30, 2020

Looks great - thanks. I’ll close this issue now. If there is anything else missing, feel free to re-open.

0reactions
Hurisacommented, Nov 30, 2020

Cool. No worries. Glad I could help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular and Linear Velocity 4 Surefire Examples!
Linear Velocity is nothing more than the velocity of an object in a straight line, whereas Angular Velocity is how much an objects...
Read more >
Relation Between Linear Velocity And Angular Velocity - Byju's
Angular velocity is the rate of change of the angular position of a rotating body. We can define the angular velocity of a...
Read more >
5.2 Angular Velocity – Biomechanics of Human Movement
Angular velocity has only two directions with respect to the axis of rotation—it is either clockwise or counterclockwise. Linear velocity is tangent to...
Read more >
Relationship between angular velocity and speed (video)
Since the arclength around a circle is given by the radius*angle (l = r*theta), you can convert an angular velocity w into linear...
Read more >
Angular velocity and speed (video) - Khan Academy
In uniform circular motion, angular velocity (w) is a vector quantity and is equal to the angular displacement (Δ𝚹, a vector quantity) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found