ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

"brics_actuator" for ROS Kinetic

asked 2017-10-04 10:41:03 -0500

updated 2017-10-05 11:15:26 -0500

Hi,

I am trying to use a package Youbot Simulation. The problem is that it asks me for brics_actuator. I have tried using this link and this link.

I shall be very thankful to you if someone could give me some clue to help me resolve this.

I am using ROS Kinetic.

Thank You in advanced.

=========== Edit 1 ==============

After using this link, I got the following error,

    In file included from /opt/ros/kinetic/include/moveit/macros/class_forward.h:40:0,
                 from /opt/ros/kinetic/include/moveit/kinematics_base/kinematics_base.h:42,
                 from /home/khan/catkin_ws/src/youbot-manipulation/youbot_arm_kinematics_moveit/ros/include/youbot_arm_kinematics_moveit/youbot_arm_kinematics_moveit.h:6,
                 from /home/khan/catkin_ws/src/youbot-manipulation/youbot_arm_kinematics_moveit/ros/src/youbot_arm_kinematics_moveit.cpp:1:
/opt/ros/kinetic/include/moveit/macros/declare_ptr.h:52:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
   typedef std::shared_ptr<Type> Name##Ptr;                                                                             \
                ^
/opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’
   MOVEIT_DECLARE_PTR(C, C);
   ^
/opt/ros/kinetic/include/moveit/kinematics_base/kinematics_base.h:137:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’
 MOVEIT_CLASS_FORWARD(KinematicsBase);
 ^
/opt/ros/kinetic/include/moveit/macros/declare_ptr.h:53:16: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
   typedef std::shared_ptr<const Type> Name##ConstPtr;
                ^
/opt/ros/kinetic/include/moveit/macros/class_forward.h:51:3: note: in expansion of macro ‘MOVEIT_DECLARE_PTR’
   MOVEIT_DECLARE_PTR(C, C);
   ^
/opt/ros/kinetic/include/moveit/kinematics_base/kinematics_base.h:137:1: note: in expansion of macro ‘MOVEIT_CLASS_FORWARD’
 MOVEIT_CLASS_FORWARD(KinematicsBase);
 ^
youbot-manipulation/youbot_arm_kinematics_moveit/CMakeFiles/youbot_arm_kinematics_moveit.dir/build.make:62: recipe for target 'youbot-manipulation/youbot_arm_kinematics_moveit/CMakeFiles/youbot_arm_kinematics_moveit.dir/ros/src/youbot_arm_kinematics_moveit.cpp.o' failed

I believe that I have to enable C++11. Could you please tell me how did you do it? I think the error which I was receiving previously has been removed.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-10-04 12:08:16 -0500

You likely just need to clone this repo into your workspace's src directory and then run catkin_make to properly build the messages required by your package.

edit flag offensive delete link more

Comments

I have tried but it does not work.

Abdul Mannan gravatar image Abdul Mannan  ( 2017-10-05 09:21:56 -0500 )edit
1

Could you possibly edit your question to explain how or why it does not work?

jarvisschultz gravatar image jarvisschultz  ( 2017-10-05 09:31:50 -0500 )edit
1

I just tested and I was able to compile a workspace that contained only the youbot_simulation package you linked and the brics_actuator package I linked on Kinetic. The only change I needed to make was enabling C++11 for the youbot_arm_kinematics_moveit package.

jarvisschultz gravatar image jarvisschultz  ( 2017-10-05 09:41:46 -0500 )edit

I believe that I have to enable C++11. Could you please tell me how did you do it? I think the error which I was receiving previously has been removed.

Abdul Mannan gravatar image Abdul Mannan  ( 2017-10-05 11:14:15 -0500 )edit

This is probably not the best CMake-y way to do this, but I just added SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") to the CMakeLists.txt in the youbot_arm_kinematics_moveit directory.

jarvisschultz gravatar image jarvisschultz  ( 2017-10-06 10:18:02 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-10-04 10:41:03 -0500

Seen: 327 times

Last updated: Oct 05 '17