orbbec / OrbbecSDK_ROS2

OrbbecSDK ROS2 wrapper
https://orbbec.github.io/OrbbecSDK_ROS2/
Apache License 2.0
77 stars 27 forks source link

Error when trying to colcon build the package on Jetson nano #26

Open phgandhi02 opened 6 months ago

phgandhi02 commented 6 months ago

I have a fresh-installation of ROS2 Foxy and followed the installation guide; however, when I run the colcon build command then I get the following error. I tried checked to see if I was missing any dependencies using rosdep install --from-paths src -y --ignore-src however it say I have everything I need. What dependency do I need or is there something else I am doing wrong?

Note: I am running this on an Nvidia Jetson Nano with Ubuntu 20.04 although I can also run it on a Raspberry Pi. I assumed they would both work. I was also planning on getting it running natively. Once it works I will pass the usb connection to a Docker container and run it inside the container. I am using an Astra Pro Plus as well.

Edit: I just ran it on the Raspberry Pi 4b (8gb) and it seems to be building just fine.

colcon build --event-handlers  console_direct+  --cmake-args  -DCMAKE_BUILD_TYPE=Release
Starting >>> orbbec_camera_msgs
Starting >>> orbbec_description
[  0%] Built target orbbec_camera_msgs__cpp                            
[ 12%] Built target orbbec_camera_msgs__rosidl_generator_c                
-- Install configuration: "Release"  
[ 24%] Built target orbbec_camera_msgs__rosidl_typesupport_introspection_cpp
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/ament_index/resource_index/package_run_dependencies/orbbec_description
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/ament_index/resource_index/parent_prefix_path/orbbec_description
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/environment/ament_prefix_path.sh
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/environment/ament_prefix_path.dsv
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/environment/path.sh
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/environment/path.dsv
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/local_setup.bash
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/local_setup.sh
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/local_setup.zsh
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/local_setup.dsv
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/package.dsv
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/ament_index/resource_index/packages/orbbec_description
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/cmake/orbbec_descriptionConfig.cmake
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/cmake/orbbec_descriptionConfig-version.cmake
-- Up-to-date: /home/prem/ballbot_ws/install/orbbec_description/share/orbbec_description/package.xml
[ 35%] Built target orbbec_camera_msgs__rosidl_typesupport_c
[ 47%] Built target orbbec_camera_msgs__rosidl_typesupport_cpp
[ 58%] Built target orbbec_camera_msgs__rosidl_typesupport_fastrtps_cpp
[ 70%] Built target orbbec_camera_msgs__rosidl_typesupport_introspection_c
Finished <<< orbbec_description [0.63s]
[ 82%] Built target orbbec_camera_msgs__rosidl_typesupport_fastrtps_c
[ 82%] Built target orbbec_camera_msgs                     
[ 83%] Generating Python code for ROS interfaces           
Illegal instruction (core dumped)                          
make[2]: *** [orbbec_camera_msgs__py/CMakeFiles/orbbec_camera_msgs__py.dir/build.make:196: rosidl_generator_py/orbbec_camera_msgs/_orbbec_camera_msgs_s.ep.rosidl_typesupport_fastrtps_c.c] Error 132
make[1]: *** [CMakeFiles/Makefile2:553: orbbec_camera_msgs__py/CMakeFiles/orbbec_camera_msgs__py.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
--- stderr: orbbec_camera_msgs                             
Illegal instruction (core dumped)
make[2]: *** [orbbec_camera_msgs__py/CMakeFiles/orbbec_camera_msgs__py.dir/build.make:196: rosidl_generator_py/orbbec_camera_msgs/_orbbec_camera_msgs_s.ep.rosidl_typesupport_fastrtps_c.c] Error 132
make[1]: *** [CMakeFiles/Makefile2:553: orbbec_camera_msgs__py/CMakeFiles/orbbec_camera_msgs__py.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< orbbec_camera_msgs [3.87s, exited with code 2]

Summary: 1 package finished [5.40s]
  1 package failed: orbbec_camera_msgs
  1 package had stderr output: orbbec_camera_msgs
  1 package not processed