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

Bug in create_bridge_from_*_to_* functions #29

Closed
haueck opened this issue Jul 19, 2016 · 2 comments
Closed

Bug in create_bridge_from_*_to_* functions #29

haueck opened this issue Jul 19, 2016 · 2 comments
Labels
question Further information is requested

Comments

@haueck
Copy link
Contributor

haueck commented Jul 19, 2016

Hi,

I think there might be a bug in bridge.hpp in functions create_bridge_from_2_to_1 and create_bridge_from_1_to_2. The function create_bridge_from_2_to_1 is called when there is a ROS2 publisher and ROS1 subscriber (as the name suggests) and it is also called in my scenario where ROS2 node only publishes and ROS1 node only receives. However, this functions creates ROS2 subscriber and ROS1 publisher. Shouldn't it be the other way around?

I run into this problem, because I keep on getting this error, when ros1_bridge creates publishers/subscribers:

type support implementation 'introspection_cpp'(0x7f5103ec7669) does not match rmw implementation 'opensplice_static'(0x7f5104fca659)

I build ROS2 only with OpenSplice implementation so I don't understand why there is a mismatch. Do you have any ideas?

Dockerfiles:

Thanks and regards,
Rafał

@dirk-thomas
Copy link
Member

To fix the type support problem you reported in #26 you will need the patch from #27 (using alpha 7 is not sufficient).

The function create_bridge_from_1_to_2 creates a ROS 2 publisher and a ROS 1 subscriber. The subscriber receives the messages in the ROS 1 system, converts it, and republishes it in the ROS 2 system.

The function create_bridge_from_2_to_1 creates a ROS 1 publisher and a ROS 2 subscriber. The subscriber receives the messages in the ROS 2 system, converts it, and republishes it in the ROS 1 system.

Both directions are working fine with the tutorials as far as I can tell.

@dirk-thomas dirk-thomas added the question Further information is requested label Jul 19, 2016
@haueck
Copy link
Contributor Author

haueck commented Jul 20, 2016

It all makes sense, thank you for your help!

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

No branches or pull requests

2 participants