-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
note: ‘std::optional’ is only available from C++17 onwards #31
Comments
Hi @Ac31415, Apparently, the recently added Capsule.hh file in Ignition requires C++17. Could you try opening |
Hi @jpliquid , Thanks for your prompt response! The above issues have been resolved. However, another error pops up with
|
@jpliquid Any updates? |
Yes I did. And it still recognized Noetic as the current distribution of ROS. So I actually resolved it by uninstalling both distributions of ROS, and then just reinstall ROS2 (Foxy) afterwards. |
Good day, I've tried to compile plankton as instructed but got the following error:
--- stderr: uuv_world_plugins In file included from /usr/include/ignition/math6/ignition/math.hh:30, from /usr/include/sdformat-9.4/sdf/Param.hh:33, from /usr/include/sdformat-9.4/sdf/Element.hh:28, from /usr/include/sdformat-9.4/sdf/Actor.hh:25, from /usr/include/sdformat-9.4/sdf/sdf.hh:2, from /usr/include/gazebo-11/gazebo/common/Battery.hh:25, from /usr/include/gazebo-11/gazebo/common/common.hh:8, from /usr/include/gazebo-11/gazebo/gazebo_core.hh:19, from /usr/include/gazebo-11/gazebo/gazebo.hh:20, from /home/wen-chung/colcon_ws/src/Plankton/uuv_world_plugins/uuv_world_plugins/include/uuv_world_plugins/GaussMarkovProcess.h:28, from /home/wen-chung/colcon_ws/src/Plankton/uuv_world_plugins/uuv_world_plugins/src/GaussMarkovProcess.cpp:24: /usr/include/ignition/math6/ignition/math/Capsule.hh:91:20: error: ‘optional’ in namespace ‘std’ does not name a template type 91 | public: std::optional< MassMatrix3<Precision> > MassMatrix() const; | ^~~~~~~~ /usr/include/ignition/math6/ignition/math/Capsule.hh:91:15: note: ‘std::optional’ is only available from C++17 onwards 91 | public: std::optional< MassMatrix3<Precision> > MassMatrix() const; | ^~~
How do I resolve this? Is there a way to change my c++ version using colcon compiler?
Thanks,
Andy Cheng
The text was updated successfully, but these errors were encountered: