roslisp icon indicating copy to clipboard operation
roslisp copied to clipboard

Topic remapping not working

Open airballking opened this issue 11 years ago • 1 comments

I started a standalone roslisp-script using roslaunch. Topic remapping specified in the launch-file was correctly registered (at least a printout showed up when the node was started, and *remapped-names* is no longer empty). However, the node still subscribes to the unmapped topic.

I'll try to come back with a minimal example, soon.

P.S.: I used roslisp version 1.9.17

airballking avatar Feb 07 '15 14:02 airballking

I did not manage to reproduce this bug. The two launch files I used look like the following:

<launch>
  <node pkg="roslisp_tutorials_basics" type="talker" name="talker_test">
    <remap from="chatter" to="actually_test_chatter" />
  </node>
</launch>

which publishes on "actually_test_chatter", and another launch file like this:

<launch>
  <node pkg="roslisp_tutorials_basics" type="listener" name="listener_test">
  </node>
</launch>

without remapping. When starting both launch files rostopic echo /actually_test_chatter prints out the results of the talker but the listener, because it has no remapping, does not react. Once I add remapping to my listener:

<launch>
  <node pkg="roslisp_tutorials_basics" type="listener" name="listener_test">
    <remap from="chatter" to="actually_test_chatter" />
  </node>
</launch>

it starts to react. Are you sure your launch file was correct?

The only peculiar thing that I notice is that the ros debug output is not seen in the launch terminal, even the errors (debug level 8) are not seen. I was, therefore, using rosout to test instead. I might investigate this further.

Update: I forgot to set output="screen". With that I can see my listener reacting to the remapped topic perfectly well...

gaya- avatar Oct 24 '16 12:10 gaya-