Closed YourSonnet18 closed 3 years ago
Well, it was easily solved by sudo apt-get install ros-melodic-effort-controllers
, according to https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor/issues/73#issuecomment-539649217, but with more errors arising...
...
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:272:38: error: no matching function for call to ‘urdf::Model::getLink(std::__cxx11::string&)’
link = robot_model.getLink(tip_name);
^
In file included from /opt/ros/melodic/include/kdl_parser/kdl_parser.hpp:42:0,
from /media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/include/baxter_sim_kinematics/arm_kinematics.h:42,
from /media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:36:
/usr/include/urdf_model/model.h:92:8: note: candidate: void urdf::ModelInterface::getLink(const string&, int&) const
void getLink(const std::string& name, LinkSharedPtr &link) const
^
/usr/include/urdf_model/model.h:92:8: note: candidate expects 2 arguments, 1 provided
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:275:25: error: ‘class urdf::Model’ has no member named ‘getJoint’
joint = robot_model.getJoint(link->parent_joint->name);
^
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:275:40: error: ‘const class urdf::Link’ has no member named ‘parent_joint’
joint = robot_model.getJoint(link->parent_joint->name);
^
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:283:24: error: ‘const class urdf::Joint’ has no member named ‘limits’
lower = joint->limits->lower;
^
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:284:24: error: ‘const class urdf::Joint’ has no member named ‘limits’
upper = joint->limits->upper;
^
/media/ghost/start/zyc/GR-ConvNet/ros_ws/src/baxter_simulator/baxter_sim_kinematics/src/arm_kinematics.cpp:299:38: error: ‘const class urdf::Link’ has no member named ‘getParent’
link = robot_model.getLink(link->getParent()->name);
^
baxter_simulator/baxter_sim_kinematics/CMakeFiles/baxter_sim_kinematics.dir/build.make:62: recipe for target 'baxter_simulator/baxter_sim_kinematics/CMakeFiles/baxter_sim_kinematics.dir/src/arm_kinematics.cpp.o' failed
make[2]: *** [baxter_simulator/baxter_sim_kinematics/CMakeFiles/baxter_sim_kinematics.dir/src/arm_kinematics.cpp.o] Error 1
CMakeFiles/Makefile2:5886: recipe for target 'baxter_simulator/baxter_sim_kinematics/CMakeFiles/baxter_sim_kinematics.dir/all' failed
make[1]: *** [baxter_simulator/baxter_sim_kinematics/CMakeFiles/baxter_sim_kinematics.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
Well, I solved my compilation problems of baxter_simulator according to the original repository: https://github.com/RethinkRobotics/baxter_simulator First, I followed the pull request: https://github.com/RethinkRobotics/baxter_simulator/pull/130 to modify some files. Then, as for the error:
#error This file requires compiler and library support for the ISO C++ 2011
I added SET(CMAKE_CXX_FLAGS "-std=c++0x")
in ros_ws/src/baxter_simulator/baxter_sim_controllers/CMakeLists.txt
.
And for the error:
/opt/ros/melodic/include/tf/tf.h:354:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
I added add_compile_options(-std=c++11)
in ros_ws/src/baxter_simulator/baxter_sim_kinematics/CMakeLists.txt
and ros_ws/src/baxter_simulator/baxter_sim_hardware/CMakeLists.txt
.
No more errors then.
@YourSonnet18, that sounds good. I want to know you were able to test this on the real robot?
@YourSonnet18, that sounds good. I want to know you were able to test this on the real robot?
I'm sorry that I don't have a real robot... So I have the same trouble as #2
have you solved https://github.com/skumra/baxter-pnp/issues/2 ?
Can this be applied on ROS Melodic, which can be installed on Ubuntu18.04? The ROS Kinetic will no longer be supported soon according to http://wiki.ros.org. When I ran the code
catkin_make
, with Ubuntu18.04 and ROS Melodic, I got this:I'm not sure if it arose out of the wrong distribution of ROS or not. But there had been no errors when I ran
catkin_make
in a project which was initialized usingcatkin_init_workspace
. Thanks for your work!