ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure if there other constraints surrounding this, but one way is to make the time_now
argument configurable on the command line:
<launch>
<arg name="time_now" default="temp" />
<rosparam command="dump" param="/robot_description" file="robot_description_$(arg time_now).yaml" />
<node name="rosbag" pkg="rosbag" type="record"
args="-O robot_$(arg time_now).bag /chatter "/>
</launch>
and then call it like so (I saved the above in a file called test.launch
):
roslaunch test.launch time_now:=$(date +%Y-%m-%d-%H-%M-%S)
2 | No.2 Revision |
I'm not sure if there are other constraints surrounding this, but one way is to make the time_now
argument configurable on the command line:
<launch>
<arg name="time_now" default="temp" />
<rosparam command="dump" param="/robot_description" file="robot_description_$(arg time_now).yaml" />
<node name="rosbag" pkg="rosbag" type="record"
args="-O robot_$(arg time_now).bag /chatter "/>
</launch>
and then call it like so (I saved the above in a file called test.launch
):
roslaunch test.launch time_now:=$(date +%Y-%m-%d-%H-%M-%S)