26 auto fetch = std::make_shared<FetchRobot>();
33 auto planner = std::make_shared<opt::CHOMPPipelinePlanner>(
fetch);
34 planner->initialize();
38 fetch->setGroupState(
GROUP, {0.265, 0.201, 1.281, -2.272, 2.243, -2.774, 0.976, -2.007});
39 request.setStartConfiguration(
fetch->getScratchState());
41 fetch->setGroupState(
GROUP, {0.265, 1.301, 1.281, -2.272, 2.243, -2.774, 0.976, -2.007});
42 request.setGoalConfiguration(
fetch->getScratchState());
44 request.setConfig(
"RRTConnect");
48 if (res.
error_code_.val != moveit_msgs::MoveItErrorCodes::SUCCESS)
55 trajectory->toYAMLFile(
"fetch_chomp_path.yml");
A helper class to build motion planning requests for a robowflex::Planner.
RAII-pattern for starting up ROS.
static const std::string GROUP
Functions for loading and animating scenes in Blender.
moveit_msgs::MoveItErrorCodes error_code_
robot_trajectory::RobotTrajectoryPtr trajectory_
robot_trajectory::RobotTrajectory trajectory(rmodel,"right_arm")