Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic remapping not working #21

Open
airballking opened this issue Feb 7, 2015 · 1 comment
Open

Topic remapping not working #21

airballking opened this issue Feb 7, 2015 · 1 comment
Assignees
Labels

Comments

@airballking
Copy link
Contributor

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 airballking added the bug label Feb 7, 2015
@airballking airballking self-assigned this Feb 7, 2015
@gaya-
Copy link
Member

gaya- commented Oct 24, 2016

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants