Ask Your Question
0

is it possible to write a python script that saves the the instantaneous velocity and acceleration of a given mobile robot in a file ?

asked 2019-04-25 04:34:29 -0500

walid touzout gravatar image

I am looking for saving the time, linear velocity and acceleration, angular velocity and acceleration of a given mobile robot (Pioneer 3DX for instance) where its Gazebo's model exists on github in a given file as a table

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-25 06:03:17 -0500

@walid touzout, I believe rosbag could be the thing that you are looking for. While running the Gazebo or real world robot, you can record whichever topic you want into a bagfile as follows:

rosbag record -O bagfilename.bag /cmd_vel /robot_pose /other_topics_you_want..

I hope it helps! Don't forget to mark this comment as answer if it solves your problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-04-25 04:34:29 -0500

Seen: 36 times

Last updated: Apr 25