Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a bag file from gazebo simulation #16

Open
BurgyWu opened this issue Jun 23, 2019 · 4 comments
Open

create a bag file from gazebo simulation #16

BurgyWu opened this issue Jun 23, 2019 · 4 comments

Comments

@BurgyWu
Copy link

BurgyWu commented Jun 23, 2019

Hello, I am trying to use " $rostopic echo <path/to/my/robot/camera> | rostopic pub <my_robot>/camera/image sensor_msgs/CompressedImage &
$rostopic echo <path/to/my/robot/odom> | rostopic pub <my_robot>/odom nav_msgs/Odometry & $rosbag record -O <my_robot>.bag <my_robot>/camera/image <my_robot>/odom " to create a bag file. For the image msgs it works well. But with odom, it only works when just type rostopic echo <path/to/my/robot/odom> | rostopic pub <my_robot>/odom nav_msgs/Odometry,
image.
When I trying to record the odom information, It has an error like
image.

@BurgyWu
Copy link
Author

BurgyWu commented Jun 23, 2019

By the way, my Ubuntu version is 18.04 with gazebo 9

@scott--
Copy link
Collaborator

scott-- commented Sep 21, 2019

I missed this issue sorry - but it doesn't look like a RatSLAM issue. If you're still trying to do this, try using topic_tools / relay instead of the rostopic echo | rostopic pub.

@BurgyWu
Copy link
Author

BurgyWu commented Sep 21, 2019 via email

@shwetabagade26
Copy link

i have made a bag file using command rosbag record node --/contoller of gazebo
i am having difficulty in playing the rosbag file
in gazebo
please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants