ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Although it's not clear from the statement what remap the OP specically is asking for, I assume, from the given bag file that contains /ivar/testAccel, /ivar/testPoint, /ivar/testTopic
, that OP wants to remap multiple topics by a single remap operation.
Although I'm not entirely sure (because the English statement and the example table in Remapping Arguments wiki page is very hard to understand for me), I don't think that is possible. My understanding is that remap in launch file works for the full exact name.
Using the example OP provides (with a little modifition done by me), the following worked on my Ubuntu 14.04 - Indigo computer.
<launch>
<arg name="file" default="$(find foobar)/myRecord.bag" />
<node pkg="rosbag" type="play" name="playback" ns="myNamespace" args="-l --clock $(arg file)">
<remap from="/ivar" to="/playback/ivar"/> <!-- This does NOT remap. -->
<remap from="/ivar/testPoint" to="/playback/ivar/testPoint"/> <!-- This DOES remap. -->
</node>
</launch>
2 | No.2 Revision |
Although it's not clear from the statement what remap the OP specically is asking for, I assume, from the given bag file that contains /ivar/testAccel, /ivar/testPoint, /ivar/testTopic
, that OP wants to remap multiple topics by a single remap operation.
Although I'm not entirely sure (because the English statement and the example table in Remapping Arguments wiki page is very hard to understand for me), I don't think that is possible. My understanding is that remap in launch file works for the full exact name.
Using the example OP provides (with a little modifition done by me), the following worked on my Ubuntu 14.04 - Indigo computer.
<launch>
<arg name="file" default="$(find foobar)/myRecord.bag" />
<node pkg="rosbag" type="play" name="playback" ns="myNamespace" args="-l --clock $(arg file)">
<remap from="/ivar" to="/playback/ivar"/> <!-- This does NOT remap. -->
<remap from="/ivar/testPoint" to="/playback/ivar/testPoint"/> <!-- This DOES remap. -->
</node>
</launch>
3 | No.3 Revision |
Although it's not clear from the statement what remap the OP specically is asking for, I assume, for specically, from the given bag file that contains /ivar/testAccel, /ivar/testPoint, /ivar/testTopic
, I assume that OP wants to remap multiple topics by a single remap operation.
Although I'm not entirely sure (because the English statement and the example table in Remapping Arguments wiki page is very hard to understand for me), I don't think that is possible. My understanding is that remap in launch file works for the full exact name.
Using the example OP provides (with a little modifition done by me), the following worked on my Ubuntu 14.04 - Indigo computer.
<launch>
<arg name="file" default="$(find foobar)/myRecord.bag" />
<node pkg="rosbag" type="play" name="playback" ns="myNamespace" args="-l --clock $(arg file)">
<remap from="/ivar" to="/playback/ivar"/> <!-- This does NOT remap. -->
<remap from="/ivar/testPoint" to="/playback/ivar/testPoint"/> <!-- This DOES remap. -->
</node>
</launch>
4 | No.4 Revision |
Although it's not clear from the statement what remap the OP is asking for specically, from the given bag file that contains /ivar/testAccel, /ivar/testPoint, /ivar/testTopic
, I assume that OP wants to remap multiple topics by a single remap operation.
Although I'm not entirely sure (because I have a trouble understinding the English statement and the example table in Remapping Arguments wiki page is very hard to understand for me), ), I don't think that is possible. My understanding is that remap in launch file works for the full exact name.
Using the example OP provides (with a little modifition done by me), the following worked on my Ubuntu 14.04 - Indigo computer.
<launch>
<arg name="file" default="$(find foobar)/myRecord.bag" />
<node pkg="rosbag" type="play" name="playback" ns="myNamespace" args="-l --clock $(arg file)">
<remap from="/ivar" to="/playback/ivar"/> <!-- This does NOT remap. -->
<remap from="/ivar/testPoint" to="/playback/ivar/testPoint"/> <!-- This DOES remap. -->
</node>
</launch>