Cannot import module control_msgs
Hi everyone,
I am currently using ROS Crystal from source. I have a second workspace where i have included the control_msgs package for bouncy. LINK.
The problem in that after successfully building the package and sourcing the corresponding install/setup.bash file, I still cannot import that particular module in python.
The error is the typical ImportError: No module named control_msgs
.
Any advide? Thanks
UPDATE
Trying to fix this myself at: https://github.com/nzlz/control_msgs/...
Error:
nestor@n-pc:~/ros2_mara_ws$ colcon build --merge-install --packages-select control_msgs
Starting >>> control_msgs
--- stderr: control_msgs
CMake Error at /home/nestor/ros2_ws/install/rosidl_adapter/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:60 (message):
execute_process(/usr/bin/python3 -m rosidl_adapter --package-name
control_msgs --arguments-file
/home/nestor/ros2_mara_ws/build/control_msgs/rosidl_adapter__arguments__control_msgs.json
--output-dir
/home/nestor/ros2_mara_ws/build/control_msgs/rosidl_adapter/control_msgs
--output-file
/home/nestor/ros2_mara_ws/build/control_msgs/rosidl_adapter/control_msgs.idls)
returned error code 1:
KeyError processing template 'struct.idl.em': 'duration'
Call Stack (most recent call first):
/home/nestor/ros2_ws/install/rosidl_cmake/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:126 (rosidl_adapt_interfaces)
CMakeLists.txt:39 (rosidl_generate_interfaces)
make: *** [cmake_check_build_system] Error 1
---
Failed <<< control_msgs [ Exited with code 2 ]
Summary: 0 packages finished [1.49s]
1 package failed: control_msgs
1 package had stderr output: control_msgs
What python version are you using?
not working with any, 2 or 3.
What does
python --version
say?2.7 and 3.6.7. But this must be an issue related to he control_msgs repo as @dirk-thomas has pointed.
Were you able to compile
https://github.com/nzlz/control_msgs
? I had to addunique_identifier_msgs
as a dependency.