Closed Schloern93 closed 3 years ago
@Schloern93
Please make sure checking the pairs
information will show the following message
$ ros2 run ros1_bridge dynamic_bridge --print-pairs | grep begin
- 'example_interfaces/srv/AddTwoInts' (ROS 2) <=> 'beginner_tutorials/AddTwoInts' (ROS 1)
Did I do something wrong when I built the bridge?
Yes, I think that you could rebuild example_interfaces after appending a mapping rule for your test into mapping_rules.yaml
-
ros1_package_name: 'beginner_tutorials'
ros1_service_name: 'AddTwoInts'
ros2_package_name: 'example_interfaces'
ros2_service_name: 'AddTwoInts'
I solved the problem. The problem was that I had built the ros1 workspace on kinetic. After I rebuilt it with melodic and built the ros_bridge it worked. The bridge now translates the messages to the ros kinetic workspace on my resberry pi.
I built the ros_bridge on noetic, but it appears the same problem like you. I wonder if this is because the wrong vesion of ros. Or could you please tell me exactly how you solved this problem?
Hallo,
i have created a Ros1 service and a Ros2 service according to the following instructions Ros1: http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29 Ros2: https://index.ros.org/doc/ros2/Tutorials/Writing-A-Simple-Cpp-Service-And-Client/
I have now built the bridge in a separate package as follows.
Translated with www.DeepL.com/Translator (free version)