topic_tools transform from launch file?
Is topic_tools transform incapable of being run from a launch file? Maybe it has a non-standard parser for getting the python imports, and can't handle __ arguments properly?
<?xml version="1.0"?>
<launch>
<node name="radius" pkg="rostopic" type="rostopic"
args="pub /radius std_msgs/Float32 'data: 1.0' -r 1" />
<node name="radius_to_diameter" pkg="topic_tools" type="transform"
args="/radius /diameter std_msgs/Float32 'm.data * 2'" />
</launch>
Fails with:
process[radius-1]: started with pid [26144]
process[radius_to_diameter-2]: started with pid [26150]
usage: transform [-h] [-i MODULES [MODULES ...]]
input output_topic output_type expression
transform: error: unrecognized arguments: __name:=radius_to_diameter __log:=/home/lucasw/.ros/log/.../radius_to_diameter-2.log
[radius_to_diameter-2] process has died [pid 26150, exit code 2, cmd /opt/ros/indigo/lib/topic_tools/transform /radius /diameter std_msgs/Float32 m.data * 2 __name:=radius_to_diameter __log:=/home/lucasw/.ros/log/.../radius_to_diameter-2.log].
While
rosrun topic_tools transform /radius /diameter std_msgs/Float32 'm.data * 2'
works as expected.