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
1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 896 times

Last updated: Oct 21 '15