ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You should use the "-O /my_path/my_file" option.
Otherwise, the "-o" is also an interesting option (see rosbag record ), as it permits to append the timestamp to the filename. So if you record twice the same thing, it won't be overwritten ;-)
Have a good day,
Bests regards
2 | No.2 Revision |
You should use the "-O /my_path/my_file" option.
Otherwise, the "-o" is also an interesting option (see rosbag record ), as it permits to append the timestamp to the filename. So if you record twice the same thing, it won't be overwritten ;-)
[EDIT] (please edit your question instead of putting a comment) as said in the help given here
-l NUM, --limit=NUM :
Only record NUM messages on each topic.
[EDIT 2] : for the
rosparam set use_sim_time true
don't forget to put it to false before recording... :-) And i would recommend you to use both the --clock and --pause option, so it loads and you can replay it when you're ready ^^
Have a good day,
Bests regards
3 | No.3 Revision |
You should use the "-O /my_path/my_file" option.
Otherwise, the "-o" is also an interesting option (see rosbag record ), as it permits to append the timestamp to the filename. So if you record twice the same thing, it won't be overwritten ;-)
[EDIT] (please edit your question instead of putting a comment) as said in the help given here
-l NUM, --limit=NUM :
Only record NUM messages on each topic.
[EDIT 2] : for the
rosparam set use_sim_time true
don't forget to put it to false before recording... :-) And i would recommend you to use both the --clock and --pause option, so it loads and you can replay it when you're ready ^^
[EDIT 3] just remove the --limit=60 and you should be fine :-) Because it means you will only record 60 messages. Which, at a 30 frame/sec rate, will do 2 seconds :-) So remove this option, and record.
Have a good day,
Bests regards
4 | No.4 Revision |
You should use the "-O /my_path/my_file" option.
Otherwise, the "-o" is also an interesting option (see rosbag record ), as it permits to append the timestamp to the filename. So if you record twice the same thing, it won't be overwritten ;-)
[EDIT] (please edit your question instead of putting a comment) as said in the help given here
-l NUM, --limit=NUM :
Only record NUM messages on each topic.
[EDIT 2] : for the
rosparam set use_sim_time true
don't forget to put it to false before recording... :-) And i would recommend you to use both the --clock and --pause option, so it loads and you can replay it when you're ready ^^
[EDIT 3] just remove the --limit=60 and you should be fine :-) Because it means you will only record 60 messages. Which, at a 30 frame/sec rate, will do 2 seconds :-) So remove this option, and record.
[EDIT 4] you put a space between the directory and filename, instead do -O /media/8676FBBC76FBAB57/my_kinect_file
Have a good day,
Bests regards
5 | No.5 Revision |
You should use the "-O /my_path/my_file" option.
Otherwise, the "-o" is also an interesting option (see rosbag record ), as it permits to append the timestamp to the filename. So if you record twice the same thing, it won't be overwritten ;-)
[EDIT] (please edit your question instead of putting a comment) as said in the help given here
-l NUM, --limit=NUM :
Only record NUM messages on each topic.
[EDIT 2] : for the
rosparam set use_sim_time true
don't forget to put it to false before recording... :-) And i would recommend you to use both the --clock and --pause option, so it loads and you can replay it when you're ready ^^
[EDIT 3] just remove the --limit=60 and you should be fine :-) Because it means you will only record 60 messages. Which, at a 30 frame/sec rate, will do 2 seconds :-) So remove this option, and record.
[EDIT 4] you put a space between the directory and filename, instead do -O /media/8676FBBC76FBAB57/my_kinect_file
[EDIT 5] otherwise, try to record each topic in a different file. I personnaly use a launch file, as show below :
<launch>
<!-- Parameters to change each time-->
<arg name="depth_registration" default="true" />
<arg name="path" default="/media/stephane/Data/Imitation_kinect" />
<!-- Putting the time back to real time-->
<rosparam>
/use_sim_time : false
</rosparam>
<node pkg="rosbag" type="record" name="record_kinect1_rgb" args="kinect1/rgb/image_raw kinect1/rgb/camera_info -o $(arg path)/kinect1_rgb"/>
<node pkg="rosbag" type="record" name="record_kinect2_rgb" args="kinect2/rgb/image_raw kinect2/rgb/camera_info -o $(arg path)/kinect2_rgb"/>
<node pkg="rosbag" type="record" name="record_tf" args="tf -o $(arg path)/tf"/>
<node pkg="rosbag" type="record" name="record_skeleton" args="/skeleton_1 /skeleton_2 -o $(arg path)/skeletons"/>
<!-- Saving the two kinect depth_registered if depth registration is ON -->
<group if="$(arg depth_registration)">
<node pkg="rosbag" type="record" name="record_kinect1_depth" args="kinect1/depth_registered/image_raw kinect1/depth_registered/camera_info -o $(arg path)/kinect1_depth"/>
<node pkg="rosbag" type="record" name="record_kinect2_depth" args="kinect2/depth_registered/image_raw kinect2/depth_registered/camera_info -o $(arg path)/kinect2_depth"/>
</group>
<!-- Saving the two kinect depth if depth registration is OFF -->
<group unless="$(arg depth_registration)">
<node pkg="rosbag" type="record" name="record_kinect1_depth" args="kinect1/depth/image_raw kinect1/depth/camera_info -o $(arg path)/kinect1_depth"/>
<node pkg="rosbag" type="record" name="record_kinect2_depth" args="kinect2/depth/image_raw kinect2/depth/camera_info -o $(arg path)/kinect2_depth"/>
</group>
</launch>
Have a good day,
Bests regards