Launch on local machine using machine tag
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 'defaultmachine' 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 `ROSMASTERURI=http://localhost:11311`, `ROSHOSTNAME=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?
Asked by Wilsonator on 2016-08-30 16:04:05 UTC
Comments
Not sure if this is a typo - and it may not help with your question - but your
ROS_MASTER_URI
should behttp://localhost:11311
(notice the port number at the end)Asked by spmaniato on 2016-08-31 05:20:08 UTC
Thanks, was just typo in this question. The problem still remains!
Asked by Wilsonator on 2016-09-01 12:30:38 UTC