24 auto fetch = std::make_shared<FetchRobot>();
29 RBX_INFO(
"RViz Initialized! Press enter to continue (after your RViz is setup)...");
36 auto planner = std::make_shared<darts::DARTPlanner>(
fetch);
40 fetch->setGroupState(
GROUP, {0.05, 1.32, 1.40, -0.2, 1.72, 0.0, 1.66, 0.0});
41 request.setStartConfiguration(
fetch->getScratchState());
43 fetch->setGroupState(
GROUP, {0.265, 0.501, 1.281, -2.272, 2.243, -2.774, 0.976, -2.007});
44 request.setGoalConfiguration(
fetch->getScratchState());
46 request.setConfig(
"rrt::RRTConnect");
50 if (res.
error_code_.val != moveit_msgs::MoveItErrorCodes::SUCCESS)
54 rviz.updateTrajectory(res);
RVIZ visualization helper. See Live Visualization with RViz for more information.
A helper class to build motion planning requests for a robowflex::Planner.
RAII-pattern for starting up ROS.
static const std::string GROUP
#define RBX_INFO(fmt,...)
Output a info logging message.
Functions for loading and animating scenes in Blender.
moveit_msgs::MoveItErrorCodes error_code_