Giter Club home page Giter Club logo

Comments (7)

lianghongzhuo avatar lianghongzhuo commented on August 20, 2024 2

@philipp1234 @v4hn It would be great if you can create a kinetic branch. So people will understand more easily.

from bio_ik.

michtesar avatar michtesar commented on August 20, 2024

I face the same problem

Errors     << bio_ik:make /home/michael/pepper_ws/logs/bio_ik/build.make.000.log
In file included from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:39:0,
                 from /home/michael/pepper_ws/src/bio_ik/src/problem.cpp:35:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h: In member function ‘void bio_ik::RobotJointEvaluator::getJointFrame(const moveit::core::JointModel*, const double*, bio_ik::Frame&)’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:132:75: error: invalid initialization of non-const reference of type ‘Eigen::Affine3d& {aka Eigen::Transform<double, 3, 2>&}’ from an rvalue of type ‘Eigen::Affine3d {aka Eigen::Transform<double, 3, 2>}’
             joint_model->computeTransform(joint_variables, joint_transform);
                                                                           ^
In file included from /usr/include/eigen3/Eigen/Geometry:44:0,
                 from /usr/include/eigen3/Eigen/Dense:6,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/problem.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:320:10: note:   after user-defined conversion: Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 1; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 2; int _Options = 0]
   inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
          ^
In file included from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:41:0,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:41,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/problem.cpp:35:
/opt/ros/kinetic/include/moveit/robot_model/joint_model.h:440:16: note:   initializing argument 2 of ‘virtual void moveit::core::JointModel::computeTransform(const double*, Eigen::Affine3d&) const’
   virtual void computeTransform(const double* joint_values, Eigen::Affine3d& transf) const = 0;
                ^
In file included from /home/michael/pepper_ws/src/bio_ik/src/kinematics_plugin.cpp:37:0:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h: In member function ‘void bio_ik::RobotJointEvaluator::getJointFrame(const moveit::core::JointModel*, const double*, bio_ik::Frame&)’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:132:75: error: invalid initialization of non-const reference of type ‘Eigen::Affine3d& {aka Eigen::Transform<double, 3, 2>&}’ from an rvalue of type ‘Eigen::Affine3d {aka Eigen::Transform<double, 3, 2>}’
             joint_model->computeTransform(joint_variables, joint_transform);
                                                                           ^
In file included from /usr/include/eigen3/Eigen/Geometry:44:0,
                 from /usr/include/eigen3/Eigen/Dense:6,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/kinematics_plugin.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:320:10: note:   after user-defined conversion: Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 1; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 2; int _Options = 0]
   inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
          ^
In file included from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:41:0,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:41,
                 from /home/michael/pepper_ws/src/bio_ik/src/kinematics_plugin.cpp:35:
/opt/ros/kinetic/include/moveit/robot_model/joint_model.h:440:16: note:   initializing argument 2 of ‘virtual void moveit::core::JointModel::computeTransform(const double*, Eigen::Affine3d&) const’
   virtual void computeTransform(const double* joint_values, Eigen::Affine3d& transf) const = 0;
                ^
In file included from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:39:0,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_test.cpp:35:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h: In member function ‘void bio_ik::RobotJointEvaluator::getJointFrame(const moveit::core::JointModel*, const double*, bio_ik::Frame&)’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:132:75: error: invalid initialization of non-const reference of type ‘Eigen::Affine3d& {aka Eigen::Transform<double, 3, 2>&}’ from an rvalue of type ‘Eigen::Affine3d {aka Eigen::Transform<double, 3, 2>}’
             joint_model->computeTransform(joint_variables, joint_transform);
                                                                           ^
In file included from /usr/include/eigen3/Eigen/Geometry:44:0,
                 from /usr/include/eigen3/Eigen/Dense:6,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_test.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:320:10: note:   after user-defined conversion: Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 1; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 2; int _Options = 0]
   inline Transform(const Transform<Scalar,Dim,OtherMode,OtherOptions>& other)
          ^
In file included from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:41:0,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:41,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_test.cpp:35:
/opt/ros/kinetic/include/moveit/robot_model/joint_model.h:440:16: note:   initializing argument 2 of ‘virtual void moveit::core::JointModel::computeTransform(const double*, Eigen::Affine3d&) const’
   virtual void computeTransform(const double* joint_values, Eigen::Affine3d& transf) const = 0;
                ^
In file included from /usr/include/eigen3/Eigen/Core:297:0,
                 from /usr/include/eigen3/Eigen/Dense:1,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal_types.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/goal_types.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h: In instantiation of ‘Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 2; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 1; int _Options = 0]’:
/home/michael/pepper_ws/src/bio_ik/src/goal_types.cpp:68:84:   required from here
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32:40: error: static assertion failed: YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION
     #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
                                        ^
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:330:5: note: in expansion of macro ‘EIGEN_STATIC_ASSERT’
     EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),
     ^
In file included from /usr/include/eigen3/Eigen/Core:297:0,
                 from /usr/include/eigen3/Eigen/Dense:1,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_test.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h: In instantiation of ‘Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 2; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 1; int _Options = 0]’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:203:78:   required from here
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32:40: error: static assertion failed: YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION
     #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
                                        ^
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:330:5: note: in expansion of macro ‘EIGEN_STATIC_ASSERT’
     EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),
     ^
In file included from /usr/include/eigen3/Eigen/Core:297:0,
                 from /usr/include/eigen3/Eigen/Dense:1,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/ik_base.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/problem.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h: In instantiation of ‘Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 2; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 1; int _Options = 0]’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:203:78:   required from here
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32:40: error: static assertion failed: YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION
     #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
                                        ^
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:330:5: note: in expansion of macro ‘EIGEN_STATIC_ASSERT’
     EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),
     ^
In file included from /usr/include/eigen3/Eigen/Core:297:0,
                 from /usr/include/eigen3/Eigen/Dense:1,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/frame.h:39,
                 from /home/michael/pepper_ws/src/bio_ik/include/bio_ik/goal.h:37,
                 from /home/michael/pepper_ws/src/bio_ik/src/kinematics_plugin.cpp:35:
/usr/include/eigen3/Eigen/src/Geometry/Transform.h: In instantiation of ‘Eigen::Transform<Scalar, Dim, Mode, _Options>::Transform(const Eigen::Transform<_Scalar, Dim, OtherMode, OtherOptions>&) [with int OtherMode = 2; int OtherOptions = 0; _Scalar = double; int _Dim = 3; int _Mode = 1; int _Options = 0]’:
/home/michael/pepper_ws/src/bio_ik/src/forward_kinematics.h:203:78:   required from here
/usr/include/eigen3/Eigen/src/Core/util/StaticAssert.h:32:40: error: static assertion failed: YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION
     #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
                                        ^
/usr/include/eigen3/Eigen/src/Geometry/Transform.h:330:5: note: in expansion of macro ‘EIGEN_STATIC_ASSERT’
     EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),

from bio_ik.

philipp1234 avatar philipp1234 commented on August 20, 2024

We've switched master to ROS Melodic.
Here's a version for Kinetic: https://github.com/TAMS-Group/bio_ik/tree/kinetic-support

from bio_ik.

michtesar avatar michtesar commented on August 20, 2024

Yeah I figured it out somehow. I download your latest release and it compiled sucessfully. Thank you for reply.

from bio_ik.

v4hn avatar v4hn commented on August 20, 2024

from bio_ik.

lianghongzhuo avatar lianghongzhuo commented on August 20, 2024

LGTM :)

from bio_ik.

michtesar avatar michtesar commented on August 20, 2024

I think this issue can be closed...

from bio_ik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.