rosbag in launch file not saving properly [closed]

asked 2016-06-08 16:52:34 -0500

jbourne gravatar image

updated 2016-06-08 16:53:37 -0500

I can successfully save data through command line tools (rosbag record -O mybag.bag /state) but when I convert this to a launch file implementation it does not save the "mybag.bag" file properly or I just don't know where this file saves to. I know the rosbag node is working because I can see it subscribing to /state in rqt_graph. Any help on this is greatly appreciated.

<launch>
    <node name="environmentNode" pkg="localization" type="environmentNode.py"/>
    <node name="actionNode" pkg="localization" type="actionNode.py"/>
    <node pkg="rosbag" type="record" name="recorder" args="-O mybag.bag /state" output="screen"/>

    <arg name="width" default="100"/>
    <arg name="height" default="100"/>
    <arg name="resolution" default="100"/>
    <arg name="Lrate" default="30"/>
    <arg name="w" default=".5 .5"/>
    <arg name="s0" default="100 100"/>
    <arg name="g" default="0 0"/>
    <arg name="type" default="linear"/> 

    <param name="resolution" value="$(arg resolution)"/>
    <param name="width" value="$(arg width)"/>
    <param name="height" value="$(arg height)"/>
    <param name="Lrate" value="$(arg Lrate)"/>
    <param name="w" value="$(arg w)"/>
    <param name="s0" value="$(arg s0)"/>
    <param name="g" value="$(arg g)"/>
    <param name="type" value="$(arg type)"/>    
</launch>
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by jbourne
close date 2016-06-08 16:55:06.695092

Comments

Can you perhaps add a link to what this is a duplicate of? Would help future readers.

gvdhoorn gravatar image gvdhoorn  ( 2016-06-09 01:52:49 -0500 )edit
2

can't find the link anymore, but they are stored in ~/.ros folder

jbourne gravatar image jbourne  ( 2016-06-14 16:11:51 -0500 )edit