Derek-TH-Wang / quadruped_ctrl

MIT mini cheetah quadruped robot simulated in pybullet environment using ros.
MIT License
306 stars 73 forks source link

catkin build err:PointVisual.cpp:9: /usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Vector3 Ogre::Vector3::perpendicular() const': /usr/include/OGRE/OgreVector3.h:582:20: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy] #17

Open dbdxnuliba opened 2 years ago

dbdxnuliba commented 2 years ago

ROS:noetic ubuntu:20.04 when catkin build -j3

[ 50%] Linking C shared library /home/taimi/ref/ws_quad_ctrl/devel/lib/libosqp.so In file included from /usr/include/OGRE/OgreMatrix3.h:33, from /usr/include/OGRE/OgreNode.h:34, from /usr/include/OGRE/OgreSceneNode.h:33, from /usr/include/OGRE/OgreSceneManager.h:37, from /home/taimi/ref/ws_quad_ctrl/src/whole_body_state_rviz_plugin-master/src/PointVisual.cpp:9: /usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Vector3 Ogre::Vector3::perpendicular() const': /usr/include/OGRE/OgreVector3.h:582:20: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy] 582 | return perp; | ^~~~ /usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)' 134 | inline Vector3& operator = ( const Vector3& rkVector ) | ^~~~ /usr/include/OGRE/OgreVector3.h: In member function 'Ogre::Quaternion Ogre::Vector3::getRotationTo(const Ogre::Vector3&, const Ogre::Vector3&) const': /usr/include/OGRE/OgreVector3.h:661:27: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy] 661 | Vector3 v0 = *this; | ^~~~ /usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)' 134 | inline Vector3& operator = ( const Vector3& rkVector ) | ^~~~ /usr/include/OGRE/OgreVector3.h:662:26: error: implicitly-declared 'constexpr Ogre::Vector3::Vector3(const Ogre::Vector3&)' is deprecated [-Werror=deprecated-copy] 662 | Vector3 v1 = dest; | ^~~~ /usr/include/OGRE/OgreVector3.h:134:25: note: because 'Ogre::Vector3' has user-provided 'Ogre::Vector3& Ogre::Vector3::operator=(const Ogre::Vector3&)' 134 | inline Vector3& operator = ( const Vector3& rkVector ) | ^~~~ /usr/include/OGRE/OgreVector3.h:670:36: error: implicitly-declared 'constexpr Ogre::Quaternion::Quaternion(const Ogre::Quaternion&)' is deprecated [-Werror=deprecated-copy] 670 | return Quaternion::IDENTITY; | ^~~~ In file included from /usr/include/OGRE/OgreVector3.h:33, image

dbdxnuliba commented 2 years ago

it's ok now ,by use https://github.com/loco-3d/whole_body_state_rviz_plugin you can close the issue

LiuYiKai6 commented 1 year ago

Hello! I met the same issue, but this does not work for me. Do you do any other thing to fix it?

it's ok now ,by use https://github.com/loco-3d/whole_body_state_rviz_plugin you can close the issue

yoggi56 commented 1 year ago

Paste this line to CMakeList.txt in the node whole_body_state_rviz_plugin: set(CMAKE_CXX_FLAGS "-std=c++14 -Wno-unused-parameter -Wno-deprecated-copy -Wno-unused-but-set-parameter" CACHE STRING "" FORCE)

BIT-XLJ commented 11 months ago

Paste this line to CMakeList.txt in the node whole_body_state_rviz_plugin: set(CMAKE_CXX_FLAGS "-std=c++14 -Wno-unused-parameter -Wno-deprecated-copy -Wno-unused-but-set-parameter" CACHE STRING "" FORCE)

really helpful!Thank you!