PR2 / pr2_mechanism

Infrastructure to control the PR2 robot in a hard realtime control loop.
Other
29 stars 27 forks source link

Add ROS_NAMESPACE prefix to tf output from robot state publisher (ros ticket #4330) #284

Closed ahendrix closed 11 years ago

ahendrix commented 11 years ago

{{{

<node pkg="robot_state_publisher" type="state_publisher" name="robot_state_publisher" machine="test_host">

<param name="tf_prefix" type="string" value="$(env ROS_NAMESPACE)" />

}}}

If the robot state publisher is launched in a different namespace, then the tf output will be screwed up. This launch file is in pr2_controller_manager.launch

An alternative to above is to use "$(optenv ROS_NAMESPACE '')".

trac data:

ahendrix commented 11 years ago

[wim] This should have been fixed in the 1.0.2 release https://code.ros.org/trac/ros-pkg/ticket/3949. You should be able to only set tf_prefix in the robot namespace, and the robot state publisher will find it, even if the robot state publisher is in a different namespace.

Could you test if this works?

ahendrix commented 11 years ago

[watts] So what this means is that I have to go like this:

{{{

``` ```

}}}

Looks ok to me.

I fixed my systems, r37816