ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Use generic home directory reference from launch file

asked 2015-10-21 08:26:19 -0600

JakeBaldwin gravatar image

I am running a .bag file from a launch file but I want to make the filepath generic so other team members can run this launch file. So I have:

<launch>
    <node pkg="rosbag" type="play" name="player" args="/home/jimbob/bagfiles/test.bag" />
</launch>

But not everyone on my team is named jimbob so I want to replace "/home/jimbob/" with maybe ${HOME} or something generic.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2015-10-21 08:56:19 -0600

See $(env ENVIRONMENT_VARIABLE) on http://wiki.ros.org/roslaunch/XML#sub...

You can use $(env HOME)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-21 08:26:19 -0600

Seen: 3,095 times

Last updated: Oct 21 '15