[ros-users] Correct way to start rosbag play in launch file?

Jeremy Leibs leibs at willowgarage.com
Wed Jun 9 20:40:56 UTC 2010


Easiest work around right now would simply be to modify your installed copy:

cp ${ROS_ROOT}/bin/rosbag `rospack find rosbag`/bin

On Wed, Jun 9, 2010 at 9:38 AM, Patrick Bouffard <bouffard at eecs.berkeley.edu
> wrote:

> Thanks Jeremy. Aside from the option flags though, do you have any
> suggestions on how to workaround the fatal error?
>
> Pat
>
> On Wed, Jun 9, 2010 at 12:13 AM, Jeremy Leibs <leibs at willowgarage.com>
> wrote:
> > Yes, this is an oversight in the rosbag package.  The play node should
> > use the new flags, not the old flags.
> >
> > I consider this to be a bug and we should have a fix in place for the
> > next patch release of ROS we push out.
> >
> > On Tue, Jun 8, 2010 at 11:59 PM, Patrick Bouffard
> > <bouffard at eecs.berkeley.edu> wrote:
> >> In boxturtle I was able to create launch files that were used to
> >> replay sensor data through algorithms. I would do something like this:
> >>
> >> <node pkg="rosbag" type="rosbag" name="rosbag" args="play -s 10
> >> --clock /path/to/bagfile.bag" />
> >>
> >> However with cturtle this no longer seems to work. "rosbag" does not
> >> appear to be a recognized node type of the rosbag package. Instead it
> >> recognizes type="play", however it seems that the commandline
> >> arguments are back to the old, "rosplay" style (i.e. for the above the
> >> options would be '-t 10 -b'). If I do this:
> >>
> >> <node pkg="rosbag" type="play" name="rosbag" args="play -t 10 -b
> >> /path/to/bagfile.bag" />
> >>
> >> .. it no longer complains about the options but I still get:
> >>
> >> [ INFO] [0.000000000]: Opening /path/to/bagfile.bag
> >> [ INFO] [0.000000000]: Opening __name:=rosbag
> >> [FATAL] [0.000000000]: Error opening file: __name:=rosbag
> >>
> >> What is the 'correct' way to start rosbag play with options from
> >> within a launch file, specifically in cturtle and also in boxturtle,
> >> if what I had started with above is not advised?
> >>
> >> Thanks,
> >> Pat
> >> _______________________________________________
> >> ros-users mailing list
> >> ros-users at code.ros.org
> >> https://code.ros.org/mailman/listinfo/ros-users
> >>
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100609/61595b56/attachment-0003.html>


More information about the ros-users mailing list