Skip to content

Commit 2fba999

Browse files
authored
Add dependencies to rosidl in CMakeLists.txt (#349)
I followed this tutorial and without adding dependencies to rosidl, the error message: ImportError: /home/dan/work/microros_ws/install/hw_msgs/lib/libhw_msgs__rosidl_generator_c.so: undefined symbol: std_msgs__msg__Header__fini pops up(in my case because of std_msgs) when publishing with the agent. I had no other errors in the compilation process. In the official tutorial it's also present: https://docs.ros.org/en/foxy/Tutorials/Single-Package-Define-And-Use-Interface.html
1 parent 90ec844 commit 2fba999

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • _docs/tutorials/advanced/create_new_type

_docs/tutorials/advanced/create_new_type/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ find_package(geometry_msgs REQUIRED)
9494
9595
rosidl_generate_interfaces(${PROJECT_NAME}
9696
"msg/MyCustomMessage.msg"
97+
DEPENDENCIES geometry_msgs
9798
)
9899
...
99100
```

0 commit comments

Comments
 (0)