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

Problem with MoveGroup (Moveit)

asked 2014-10-15 12:03:21 -0600

Bastbeat gravatar image

I'm following the Moveit tutorials, but I can't create the first variable.

I found this link(https://groups.google.com/forum/#!msg/moveit-users/JohDfeDhl6U/ZFfFDsDw7W8J), but I don't understand the answer

Code:

#include <moveit/move_group_interface/move_group.h>
#include <moveit/planning_scene_interface/planning_scene_interface.h>
#include <moveit_msgs/DisplayRobotState.h>
#include <moveit_msgs/DisplayTrajectory.h>
#include <moveit_msgs/AttachedCollisionObject.h>
#include <moveit_msgs/CollisionObject.h>

int main(int argc, char **argv)
{
ros::init(argc, argv, "moveit_test");
ros::NodeHandle node_handle;
ros::AsyncSpinner spinner(1);
spinner.start();

sleep(20.0);

moveit::planning_interface::MoveGroup group("manipulator");

ros::shutdown();
}

Catkin_make:

/home/uplow/cworkspace/moveit/src/moveit_test_programming/src/testi.cpp: In function �int main(int, char**)�:
/home/uplow/cworkspace/moveit/src/moveit_test_programming/src/testi.cpp:17:39: error: no matching function for call to �moveit::planning_interface::MoveGroup::MoveGroup()
/home/uplow/cworkspace/moveit/src/moveit_test_programming/src/testi.cpp:17:39: note: candidates are:
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:122:3: note: moveit::planning_interface::MoveGroup::MoveGroup(const string&, const boost::shared_ptr<tf::Transformer>&, const ros::Duration&)
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:122:3: note:   candidate expects 3 arguments, 0 provided
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:116:3: note: moveit::planning_interface::MoveGroup::MoveGroup(const moveit::planning_interface::MoveGroup::Options&, const boost::shared_ptr<tf::Transformer>&, const ros::Duration&)
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:116:3: note:   candidate expects 3 arguments, 0 provided
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:69:7: note: moveit::planning_interface::MoveGroup::MoveGroup(const moveit::planning_interface::MoveGroup&)
/opt/ros/hydro/include/moveit/move_group_interface/move_group.h:69:7: note:   candidate expects 1 argument, 0 provided
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2014-11-22 13:16:47 -0600

Andromeda gravatar image

He says that that class is named differently.

Then substitute the line in your code with:

moveit::planning_interface group("manipulator");
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-10-15 12:03:21 -0600

Seen: 3,336 times

Last updated: Nov 22 '14