ros-drivers / openni2_camera

ROS wrapper for openni 2.0
http://wiki.ros.org/openni2_camera
BSD 3-Clause "New" or "Revised" License
56 stars 96 forks source link

Compiling error: error: ISO C++17 does not allow dynamic exception specifications #112

Closed jmguerreroh closed 1 year ago

jmguerreroh commented 2 years ago

After compiling using colcon build --symlink-install I obtain this error

/src/openni2_camera/openni2_camera/include/openni2_camera/openni2_device.h:69:37: error: ISO C++17 does not allow dynamic exception specifications
   69 |                 rclcpp::Node* node) throw (OpenNI2Exception);

Any idea?

Juancams commented 1 year ago

Removing all throw and OpenNI2Exception.

Check https://github.com/Juancams/openni2_camera

130s commented 1 year ago

C++17 so I assume you're on ROS2 or something newer than what ROS1 supports. AFAIK the packages on this repo are not officially ported to ROS2, it's tracked in https://github.com/ros-drivers/openni2_camera/issues/90

mikeferguson commented 1 year ago

These exception thingies are gone in the ROS2 branch