Skip to content
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

catkin_make returns error #1

Open
pringithub opened this issue May 1, 2020 · 1 comment
Open

catkin_make returns error #1

pringithub opened this issue May 1, 2020 · 1 comment

Comments

@pringithub
Copy link

Hi I'd like to use your code but am getting the following errors

/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp: In destructor ‘virtual gazebo::MimicJointPlugin::~MimicJointPlugin()’:
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:50:3: error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’
   event::Events::DisconnectWorldUpdateBegin(this->updateConnection);
   ^
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp: In member function ‘void gazebo::MimicJointPlugin::UpdateChild()’:
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:170:39: error: ‘class gazebo::physics::World’ has no member named ‘GetPhysicsEngine’
   static ros::Duration period(world_->GetPhysicsEngine()->GetMaxStepSize());
                                       ^
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:173:26: error: ‘class gazebo::physics::Joint’ has no member named ‘GetAngle’
   double angle = joint_->GetAngle(0).Radian()*multiplier_+offset_;
                          ^
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:175:30: error: ‘class gazebo::physics::Joint’ has no member named ‘GetAngle’
   if(abs(angle-mimic_joint_->GetAngle(0).Radian())>=sensitiveness_)
                              ^
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:179:32: error: ‘class gazebo::physics::Joint’ has no member named ‘GetAngle’
       double a = mimic_joint_->GetAngle(0).Radian();
                                ^
/home/lxu9/moveit_ws/src/ur/robotiq_gripper/robotiq/robotiq_gazebo/src/mimic_joint_plugin.cpp:183:31: error: ‘gazebo::math’ has not been declared
       double effort = gazebo::math::clamp(pid_.computeCommand(error, period), -max_effort_, max_effort_);
                               ^
ur/robotiq_gripper/robotiq/robotiq_gazebo/CMakeFiles/gazebo_mimic_joint_plugin.dir/build.make:62: recipe for target 'ur/robotiq_gripper/robotiq/robotiq_gazebo/CMakeFiles/gazebo_mimic_joint_plugin.dir/src/mimic_joint_plugin.cpp.o' failed
make[2]: *** [ur/robotiq_gripper/robotiq/robotiq_gazebo/CMakeFiles/gazebo_mimic_joint_plugin.dir/src/mimic_joint_plugin.cpp.o] Error 1
CMakeFiles/Makefile2:1624: recipe for target 'ur/robotiq_gripper/robotiq/robotiq_gazebo/CMakeFiles/gazebo_mimic_joint_plugin.dir/all' failed
make[1]: *** [ur/robotiq_gripper/robotiq/robotiq_gazebo/CMakeFiles/gazebo_mimic_joint_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

@Alex-Beh
Copy link

Alex-Beh commented May 23, 2021

@pringithub Hello, you can find the solution here: https://github.com/filesmuggler/robotiq .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants