11 int main(
int argc,
char **argv)
17 auto wam7 = std::make_shared<Robot>(
"wam7");
18 wam7->initialize(
"package://barrett_model/robots/wam_7dof_wam_bhand.urdf.xacro",
19 "package://barrett_wam_moveit_config/config/wam7_hand.srdf",
20 "package://barrett_wam_moveit_config/config/joint_limits.yaml",
21 "package://barrett_wam_moveit_config/config/kinematics.yaml"
25 wam7->loadKinematics(
"arm");
28 auto scene = std::make_shared<Scene>(wam7);
32 auto planner = std::make_shared<OMPL::OMPLPipelinePlanner>(wam7);
36 planner->initialize(
"package://barrett_wam_moveit_config/config/ompl_planning.yaml",
47 if (res.
error_code_.val != moveit_msgs::MoveItErrorCodes::SUCCESS)
A helper class to build motion planning requests for a robowflex::Planner.
bool setConfig(const std::string &requested_config)
Set the planning configuration to use for the motion planning request. Attempts to match requested_co...
void setStartConfiguration(const std::vector< double > &joints)
Set the start configuration from a vector joints. All joints are assumed to be specified and in the d...
planning_interface::MotionPlanRequest & getRequest()
Get a reference to the currently built motion planning request.
void setGoalConfiguration(const std::vector< double > &joints)
Set the goal configuration from a vector joints. All joints are assumed to be specified and in the de...
Settings descriptor for settings provided by the default MoveIt! OMPL planning pipeline.
bool simplify_solutions
Whether or not planner should simplify solutions.
RAII-pattern for starting up ROS.
Main namespace. Contains all library classes and functions.
Functions for loading and animating scenes in Blender.
moveit_msgs::MoveItErrorCodes error_code_
int main(int argc, char **argv)