Error compiling kinetic version
Closed this issue · 2 comments
epsilon11101 commented
HI, me again 💃 , i'm trying to compile KINETIC version this time , but i have another error :/ , i cant fund a solution on closed issues , what can i do?
Errors << moveit_grasps:make /home/ixmatix-manuel/openDog_arm/logs/moveit_grasps/build.make.002.log
/home/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp: In member function ‘virtual bool moveit_grasps::GraspData::loadGraspData(const ros::NodeHandle&, const string&)’:
/home/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp:114:92: 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>}’
error += !rosparam_shortcuts::get(parent_name, child_nh, "tcp_to_eef_mount_transform", tcp_to_eef_mount_);
^
In file included from /usr/include/eigen3/Eigen/Geometry:44:0,
from /opt/ros/kinetic/include/moveit/robot_model/joint_model.h:47,
from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:41,
from /opt/ros/kinetic/include/moveit/robot_model/robot_model.h:47,
from /opt/ros/kinetic/include/moveit/robot_state/robot_state.h:41,
from /home/ixmatix-manuel/openDog_arm/src/moveit_grasps/include/moveit_grasps/grasp_data.h:52,
from /home/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp:40:
/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 /home/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp:51:0:
/opt/ros/kinetic/include/rosparam_shortcuts/rosparam_shortcuts.h:93:6: note: initializing argument 4 of ‘bool rosparam_shortcuts::get(const string&, const ros::NodeHandle&, const string&, Eigen::Affine3d&)’
bool get(const std::string &parent_name, const ros::NodeHandle &nh, const std::string ¶m_name,
^
In file included from /usr/include/eigen3/Eigen/Core:297:0,
from /usr/include/eigen3/Eigen/Geometry:11,
from /opt/ros/kinetic/include/moveit/robot_model/joint_model.h:47,
from /opt/ros/kinetic/include/moveit/robot_model/joint_model_group.h:41,
from /opt/ros/kinetic/include/moveit/robot_model/robot_model.h:47,
from /opt/ros/kinetic/include/moveit/robot_state/robot_state.h:41,
from /home/ixmatix-manuel/openDog_arm/src/moveit_grasps/include/moveit_grasps/grasp_data.h:52,
from /home/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp:40:
/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/ixmatix-manuel/openDog_arm/src/moveit_grasps/src/grasp_data.cpp:163:81: 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)),
^
make[2]: *** [CMakeFiles/moveit_grasps.dir/src/grasp_data.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/moveit_grasps.dir/all] Error 2
make: *** [all] Error 2
cd /home/ixmatix-manuel/openDog_arm/build/moveit_grasps; catkin build --get-env moveit_grasps | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -
...............................................................................
Failed << moveit_grasps:make [ Exited with code 2 ]
Failed <<< moveit_grasps [ 15.4 seconds ]
[build] Summary: 4 of 5 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 15.6 seconds total.
Dale-Koenig commented
It looks like you're not using the kinetic branch for moveit grasps.
epsilon11101 commented
thanks, was that :)