I am following the tutorial for using ros2 bag
I used command ros2 bag record -o test /turtle1/cmd_vel /turtle1/pose
to record the data.
I draw a cycle by pressing T-> forward arrow-> R-> forward arrow-> E-> forward arrow-> D-> forward arrow-> C-> forward arrow-> V-> forward arrow-> B-> forward arrow-> G -> forward arrow
It is 8 times move forward + 8 times rotate = 16 counts
However, when I did ros2 bag play test
, the turtle only moves forward then will throw warning msg:hit the wall
So I checked ros2 bag info test
, it shows:
Topic information: Topic: /turtle1/cmd_vel | Type: geometry_msgs/msg/Twist | Count: 8 | Serialization Format: cdr Topic: /turtle1/pose | Type: turtlesim/msg/Pose | Count: 6592 | Serialization Format: cdr
It seems it did not record/count the rotate operations.
Any idea why? Or is there any thing I missed?
PS: I am using virtualbox to run the Linux environment for ROS2 in Mac. Could it be the reason?
Originally posted by lin404 on ROS Answers with karma: 60 on 2019-12-17
Post score: 0