Launch on local machine using machine tag

asked 2016-08-30 16:04:05 -0600

Wilsonator gravatar image

updated 2016-09-01 12:30:08 -0600

For a launch file that is part of a bigger project, I am using the following format:

<launch>
    <arg name="machine"/>

    <node pkg="atv" type="foo.py" name="foo"
        output="log" machine="$(arg machine)"/>
</launch>

This works great in a project where I create a launch file, include machines, then send the machine name to this included launch file as an argument.

However when trying to do testing of individual components, I would like to be able to use this launch file to launch on the current local machine.

There seems to be reference to a 'default_machine' in the code for launching nodes, but I cannot seem to figure out how to launch on it. Leacing machine as blank, or ="" is invalid. I have tried to send localhost while ROS_MASTER_URI=http://localhost:11311, ROS_HOSTNAME=localhost, I have also tried default_machine. Not luck!

Anyone know what I should set the machine tag to for launching the node on the local machine?

edit retag flag offensive close merge delete

Comments

Not sure if this is a typo - and it may not help with your question - but your ROS_MASTER_URI should be http://localhost:11311 (notice the port number at the end)

spmaniato gravatar image spmaniato  ( 2016-08-31 05:20:08 -0600 )edit
1

Thanks, was just typo in this question. The problem still remains!

Wilsonator gravatar image Wilsonator  ( 2016-09-01 12:30:38 -0600 )edit