luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

Failed Building from source #315

Closed Embedded1993 closed 1 year ago

Embedded1993 commented 1 year ago

--- stderr: depthai_ros_driver
/home/ubuntu/dai_ws/src/depthai-ros/depthai_ros_driver/src/dai_nodes/sensors/imu.cpp: In constructor ‘depthai_ros_driver::dai_nodes::Imu::Imu(const string&, rclcpp::Node*, std::shared_ptr, std::shared_ptr)’: /home/ubuntu/dai_ws/src/depthai-ros/depthai_ros_driver/src/dai_nodes/sensors/imu.cpp:22:40: error: ‘using element_type = class dai::Device’ {aka ‘class dai::Device’} has no member named ‘getConnectedIMU’; did you mean ‘getConnection’? 22 | ph->declareParams(imuNode, device->getConnectedIMU()); | ^~~~~~~ | getConnection gmake[2]: [CMakeFiles/depthai_ros_driver_sensor_nodes.dir/build.make:76: CMakeFiles/depthai_ros_driver_sensor_nodes.dir/src/dai_nodes/sensors/imu.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:172: CMakeFiles/depthai_ros_driver_sensor_nodes.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< depthai_ros_driver [43.9s, exited with code 2]

Summary: 5 packages finished [57.0s] 1 package failed: depthai_ros_driver 1 package had stderr output: depthai_ros_driver 1 package not processed

-ROS distro: humble

Serafadam commented 1 year ago

Hi, could you check what version of ros-humble-depthai you have?

innovation-x commented 1 year ago

I have a similar situation. But it seems that I met some problems when building the mobilenet depthai examples. Also I am using the humble version of depthai and ROS.

gmake[2]: [CMakeFiles/mobilenet_node.dir/build.make:211: mobilenet_node] Error 1 gmake[1]: [CMakeFiles/Makefile2:173: CMakeFiles/mobilenet_node.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< depthai_examples [16.7s, exited with code 2]

Summary: 7 packages finished [32.6s] 1 package failed: depthai_examples 2 packages had stderr output: depthai_examples my_package 2 packages not processed

Embedded1993 commented 1 year ago

Yes. I have tried humble latest version

ladrians commented 1 year ago

I have the same problem, but am using the noetic branch.

/home/jetson/catkin_ws/src/depthai-ros/depthai_ros_driver/src/dai_nodes/sensors/imu.cpp:23:40: error: ‘using element_type = class dai::Device’ {aka ‘class dai::Device’} has no member named
‘getConnectedIMU’; did you mean ‘getConnection’?
   23 |     ph->declareParams(imuNode, device->getConnectedIMU());
      |                                        ^~~~~~~~~~~~~~~
      |                                        getConnection
Embedded1993 commented 1 year ago

Any update? still same issue

Cur1ousKea commented 1 year ago

Same issue for me as well. Im using Humble.

Serafadam commented 1 year ago

Hi @Embedded1993, @Cur1ousKea, sorry for the delay, could you try running sudo apt update && sudo apt ugprade?

Cur1ousKea commented 1 year ago

Well, my turtlebot4 always had some hickups after upgrading thats why i feared to do it. But it solves the issue. Thanks!

ladrians commented 1 year ago

confirmed too that the compilation error in noetic branch is gone too.

Embedded1993 commented 1 year ago

fixed