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

rosidl_adapter: could not import 'rosidl_typesupport_c' for package geometry_msgs #823

Open
flxinxout opened this issue Aug 29, 2024 · 2 comments
Labels
more-information-needed Further information is required

Comments

@flxinxout
Copy link

Bug report

Hello. I recently experienced troubles with navigation2 installed in a docker container. The error I encounter is when I use a custom message using geometry_msgs, for example using nav2. I saw that nav2 added changes from rodisl recently.

Required Info:
Here is the link to the image (ros2 humble, Ubuntu 22.04):
ghcr.io/epflxplore/rover:humble-jetson

Steps to reproduce issue

  • Pull the image
  • create a package with a custom message with a geometry_msgs
  • create a node and start it

Additional information

This error seems to appear occasionally. Sometimes it appears when the image is pulled from github, sometimes when I build it locally.

@sloretz
Copy link
Contributor

sloretz commented Sep 6, 2024

This one got talked about today 🧇 . It seems strange that this particular error would only happen occasionally. Does it ever happen after you've run sudo apt-get dist-upgrade?

@sloretz sloretz added the more-information-needed Further information is required label Sep 6, 2024
@Luigip98
Copy link

Luigip98 commented Feb 26, 2025

@sloretz I don't know if I have the same troubles but I noticed that when I try to create a custom interface with geometry_msgs , inside a package with an already built library(such as a ros2 controller), even changing the name in the CMakelists inside rosidl_generate_interfaces( " "), I am not able to call the service from terminal with the error: "Could not import 'rosidl_typesupport_c' for package "package_name" . What I noticed is that looking into the install/ folder of my ros2 workspace:

find install/ -name "*rosidl_typesupport_c*"

there is something like that:
install/local/lib/python3.10/dist-packages/package_name/package_name_s__rosidl_typesupport_c..cpython-310-x86_64-linux-gnu.so

that is fine unless for the double dot ".." next to cpython.
For the other packages where there are custom interfaces and everything is fine there is only one dot "."
As a result, if I modify the name with only one dot it works.

Moreover if I build the same custom service in a blank package it works. Why does it create that file .so with a name error inside?

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

No branches or pull requests

3 participants