Unity-Technologies / Unity-Robotics-Hub

Central repository for tools, tutorials, resources, and documentation for robotics simulation in Unity.
Apache License 2.0
1.97k stars 411 forks source link

Connected but fast Disconnected and then recurrent both, the terminal info ModuleNotFoundError: No module named 'unity_robotics_demo_msgs.unity_robotics_demo_msgs_s__rosidl_typesupport_c' #418

Open lifuboshiqikuangsan opened 2 months ago

lifuboshiqikuangsan commented 2 months ago

[INFO] [1716546449.579505198] [UnityEndpoint]: Connection from 172.16.46.161 [INFO] [1716546449.691776483] [UnityEndpoint]: RegisterSubscriber(/tf, <class 'tf2_msgs.msg._tf_message.TFMessage'>) OK [INFO] [1716546449.695356486] [UnityEndpoint]: Disconnected from 172.16.46.161 Exception in thread Thread-2: Traceback (most recent call last): File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosidl_generator_py/import_type_support_impl.py", line 46, in import_type_support return importlib.import_module(module_name, package=pkg_name) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'unity_robotics_demo_msgs.unity_robotics_demo_msgs_s__rosidl_typesupport_c'

lifuboshiqikuangsan commented 2 months ago

Sorry,I have already solved this problem. It's the customer interface CMakeList problem

DongzhenHuangfu commented 1 month ago

Sorry,I have already solved this problem. It's the customer interface CMakeList problem

Could you please show me how you fix this problem?

lifuboshiqikuangsan commented 1 month ago

https://blog.csdn.net/weixin_44566432/article/details/133941241

you can solve this problem by follow this paper