installed Ros1_bridge by apt install ros-dashing-ros1_birdge
This is the reason. The bridge provided in ros-dashing-ros1-bridge
has no knowledge of your messages. You need to build a custom bridge from source.
If you follow the steps of the document you link to https://github.com/ros2/ros1_bridge/blob/master/doc/index.rst#how-does-the-bridge-know-about-custom-interfaces it will guide you through how to setup workspaces, build your messages and how to build a bridge capable of bridging your messages
Originally posted by marguedas with karma: 3606 on 2020-03-19
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by Freesun on 2020-03-19:
oh! i got it! i'll do that!! thx :)
Comment by Freesun on 2020-03-19:
umm.... i faced another problem! when i run all nodes.
ros1_bridge suddenly shut down.
here is error message :
$ ros2 run ros1_bridge dynamic_bridge
created 2to1 bridge for topic '/rosout' with ROS 2 type 'rcl_interfaces/msg/Log' and ROS 1 type 'rosgraph_msgs/Log'
created 1to2 bridge for topic '/my_topic' with ROS 1 type 'tut_msgs/Num' and ROS 2 type 'tut_msgs/msg/Num'
[INFO] [ros_bridge]: Passing message from ROS 1 tut_msgs/Num to ROS 2 tut_msgs/msg/Num (showing msg only once per type)
realloc(): invalid pointer
Comment by marguedas on 2020-03-19:
this is unfortunate
Are you using CycloneDDS by any chance ?
Did you try looking for a similar issue on the ros1_bridge repository ? This looks pretty similar to your issue https://github.com/ros2/ros1_bridge/issues/244
Comment by Freesun on 2020-03-19:
okay... i'll search more issues! thank u ;)
Comment by Freesun on 2020-03-20:
Hello!! I solved it when i install cyclone dds!!
Comment by marguedas on 2020-03-20:
glad you can now bridge your messages.
As your problem is solved, could you please close the question or, if it answered your original question, accept the proposed answer by clicking the checkmark on the left.
This will allow to remove your question from the unanswered list