How to publish a message to a topic while playing rosbag? [closed]
How to publish a message from a rosbag topic?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
How to publish a message from a rosbag topic?
It's not clear from your question what you've tried, so if this is not what you're looking for, please provide more specific information. There are two basic ways to play back topics from a rosbag file:
rosbag play <filename>
from the command line as BV_Pradeep suggested. See the wiki for more information.rosrun rqt_bag rqt_bag
from the command line to open an interactive GUI. Open a bag file, right-click the topic you want, and check "Publish" in the menu. Then click the play button. See the wiki for more information.The first option is more useful in general, but the second option may be good for getting started or troubleshooting certain situations.
Asked: 2020-01-21 01:39:53 -0600
Seen: 1,116 times
Last updated: Jan 21 '20
what is the meaning of transformGlobalPlan in goalfunction.cpp line 80
Kinect depth image to real world coordinate
Does ROS include I2C Driver for Odroid/Ubuntu?
error installing ros "gpg: keyserver receive failed: Server indicated a failure"
Python3, ROS Melodic and Debian Stretch
buildfarm: Melodic build with qt_gui_cpp dependency doesn't install qtbase5-dev
Unable to change the resolution of the camera without cropping the image
Significance of adding end effectors in MoveIt! Setup Assistant
The question is unclear as
will playback your recorded file. if you then look at the nodes using
will show a single rosbag node publishing all topics it recorded. Please elaborate your question.
It's not clear from your question what you've tried. I guass rosbag should be used for provide data. Just think it like a recorder, it remembers what happened. You could get something from it, but you couldn't send something to it. So generally, I just use rosbag as publisher.
Hi, thank you for your reply. What I want to do is that I would like to visualize a lidar data. I have two rosbag data. First, I will get the lidar data from 1st rosbag and visualize it on the 2nd rosbag. The two rosbag is running in different pc.