Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1441

robotStateToRobotStateMsg

$
0
0
Hello! I keep getting the error: ‘robotStateToRobotStateMsg’ is not a member of ‘moveit::core’ In the CMakeList I have moveit_core, moveit_ros_planning, moveit_ros_planning_interface, roscpp, rospy and std_msgs as dependencies. Is there something else I need to add here? And I'm confused that moveit::planning_interface::MoveGroup::getJointValueTarget gives me a moveit::core::RobotState instead of a robot_state::RobotState like the [documentation](http://docs.ros.org/indigo/api/moveit_ros_planning_interface/html/classmoveit_1_1planning__interface_1_1MoveGroup.html#a3a73aa2e26f893db5b21fe20a5c3c6cb) says. edit: I want to plan a path with multiple waypoints without executing the individual paths. For that I want to ste the starting state to the target of the previous waypoint. I tried that with moveit::planning_interface::MoveGroup group("arm"); ... ... ... moveit_msgs::RobotState start_state; start_state = group.getJointValueTarget() group.setStartState(start_state); but getJointValueTarget() gives me a moveit::core::RobotState and setStartState() wants a moveit_msgs::RobotState or a robot_state::RobotState, that's why i tried robotStateToRobotStateMsg. moveit::core::robotStateToRobotStateMsg(group.getJointValueTarget(), start_state); which gave me the mentioned error. I'd also appreciate new/better approaches for my intention. Thank you in advance!

Viewing all articles
Browse latest Browse all 1441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>