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

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:

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

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

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


You can use $(env HOME)

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 2,917 times

Last updated: Oct 21 '15