moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
MoveGroupInterface::MoveGroupInterfaceImpl Class Reference

Public Member Functions

 MoveGroupInterfaceImpl (const rclcpp::Node::SharedPtr &node, const Options &opt, const std::shared_ptr< tf2_ros::Buffer > &tf_buffer, const rclcpp::Duration &wait_for_servers)
 ~MoveGroupInterfaceImpl ()
const std::shared_ptr< tf2_ros::Buffer > & getTF () const
const OptionsgetOptions () const
const moveit::core::RobotModelConstPtr & getRobotModel () const
const moveit::core::JointModelGroupgetJointModelGroup () const
rclcpp_action::Client< moveit_msgs::action::MoveGroup > & getMoveGroupClient () const
bool getInterfaceDescription (moveit_msgs::msg::PlannerInterfaceDescription &desc)
bool getInterfaceDescriptions (std::vector< moveit_msgs::msg::PlannerInterfaceDescription > &desc)
std::map< std::string, std::string > getPlannerParams (const std::string &planner_id, const std::string &group="")
void setPlannerParams (const std::string &planner_id, const std::string &group, const std::map< std::string, std::string > &params, bool replace=false)
std::string getDefaultPlanningPipelineId () const
void setPlanningPipelineId (const std::string &pipeline_id)
const std::string & getPlanningPipelineId () const
std::string getDefaultPlannerId (const std::string &group) const
void setPlannerId (const std::string &planner_id)
const std::string & getPlannerId () const
void setNumPlanningAttempts (unsigned int num_planning_attempts)
void setMaxVelocityScalingFactor (double value)
double getMaxVelocityScalingFactor () const
void setMaxAccelerationScalingFactor (double value)
double getMaxAccelerationScalingFactor () const
void setMaxScalingFactor (double &variable, const double target_value, const char *factor_name, double fallback_value)
moveit::core::RobotStategetTargetRobotState ()
const moveit::core::RobotStategetTargetRobotState () const
void setStartState (const moveit_msgs::msg::RobotState &start_state)
void setStartState (const moveit::core::RobotState &start_state)
void setStartStateToCurrentState ()
moveit::core::RobotStatePtr getStartState ()
bool setJointValueTarget (const geometry_msgs::msg::Pose &eef_pose, const std::string &end_effector_link, const std::string &frame, bool approx)
void setEndEffectorLink (const std::string &end_effector)
void clearPoseTarget (const std::string &end_effector_link)
void clearPoseTargets ()
const std::string & getEndEffectorLink () const
const std::string & getEndEffector () const
bool setPoseTargets (const std::vector< geometry_msgs::msg::PoseStamped > &poses, const std::string &end_effector_link)
bool hasPoseTarget (const std::string &end_effector_link) const
const geometry_msgs::msg::PoseStamped & getPoseTarget (const std::string &end_effector_link) const
const std::vector< geometry_msgs::msg::PoseStamped > & getPoseTargets (const std::string &end_effector_link) const
void setPoseReferenceFrame (const std::string &pose_reference_frame)
const std::string & getPoseReferenceFrame () const
void setTargetType (ActiveTargetType type)
ActiveTargetType getTargetType () const
bool startStateMonitor (double wait)
bool getCurrentState (moveit::core::RobotStatePtr &current_state, double wait_seconds=1.0)
moveit::core::MoveItErrorCode plan (Plan &plan)
moveit::core::MoveItErrorCode move (bool wait)
moveit::core::MoveItErrorCode execute (const moveit_msgs::msg::RobotTrajectory &trajectory, bool wait, const std::vector< std::string > &controllers=std::vector< std::string >())
double computeCartesianPath (const std::vector< geometry_msgs::msg::Pose > &waypoints, double step, moveit_msgs::msg::RobotTrajectory &msg, const moveit_msgs::msg::Constraints &path_constraints, bool avoid_collisions, moveit_msgs::msg::MoveItErrorCodes &error_code)
void stop ()
bool attachObject (const std::string &object, const std::string &link, const std::vector< std::string > &touch_links)
bool detachObject (const std::string &name)
double getGoalPositionTolerance () const
double getGoalOrientationTolerance () const
double getGoalJointTolerance () const
void setGoalJointTolerance (double tolerance)
void setGoalPositionTolerance (double tolerance)
void setGoalOrientationTolerance (double tolerance)
void setPlanningTime (double seconds)
double getPlanningTime () const
void constructRobotState (moveit_msgs::msg::RobotState &state) const
void constructMotionPlanRequest (moveit_msgs::msg::MotionPlanRequest &request) const
void constructGoal (moveit_msgs::action::MoveGroup::Goal &goal) const
void setPathConstraints (const moveit_msgs::msg::Constraints &constraint)
bool setPathConstraints (const std::string &constraint)
void clearPathConstraints ()
void setTrajectoryConstraints (const moveit_msgs::msg::TrajectoryConstraints &constraint)
void clearTrajectoryConstraints ()
std::vector< std::string > getKnownConstraints () const
moveit_msgs::msg::Constraints getPathConstraints () const
moveit_msgs::msg::TrajectoryConstraints getTrajectoryConstraints () const
void initializeConstraintsStorage (const std::string &host, unsigned int port)
void setWorkspace (double minx, double miny, double minz, double maxx, double maxy, double maxz)
rclcpp::Clock::SharedPtr getClock ()

Detailed Description

Definition at line 118 of file move_group_interface.cpp.

Constructor & Destructor Documentation

◆ MoveGroupInterfaceImpl()

moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::MoveGroupInterfaceImpl ( const rclcpp::Node::SharedPtr & node,
const Options & opt,
const std::shared_ptr< tf2_ros::Buffer > & tf_buffer,
const rclcpp::Duration & wait_for_servers )
inline

Definition at line 123 of file move_group_interface.cpp.

◆ ~MoveGroupInterfaceImpl()

Member Function Documentation

◆ attachObject()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::attachObject ( const std::string & object,
const std::string & link,
const std::vector< std::string > & touch_links )
inline

Definition at line 936 of file move_group_interface.cpp.

◆ clearPathConstraints()

◆ clearPoseTarget()

Definition at line 513 of file move_group_interface.cpp.

◆ clearPoseTargets()

◆ clearTrajectoryConstraints()

◆ computeCartesianPath()

double moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::computeCartesianPath ( const std::vector< geometry_msgs::msg::Pose > & waypoints,
double step,
moveit_msgs::msg::RobotTrajectory & msg,
const moveit_msgs::msg::Constraints & path_constraints,
bool avoid_collisions,
moveit_msgs::msg::MoveItErrorCodes & error_code )
inline

Definition at line 884 of file move_group_interface.cpp.

◆ constructGoal()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::constructGoal ( moveit_msgs::action::MoveGroup::Goal & goal) const
inline

Definition at line 1100 of file move_group_interface.cpp.

◆ constructMotionPlanRequest()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::constructMotionPlanRequest ( moveit_msgs::msg::MotionPlanRequest & request) const
inline

Definition at line 1042 of file move_group_interface.cpp.

◆ constructRobotState()

Definition at line 1037 of file move_group_interface.cpp.

◆ detachObject()

◆ execute()

moveit::core::MoveItErrorCode moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::execute ( const moveit_msgs::msg::RobotTrajectory & trajectory,
bool wait,
const std::vector< std::string > & controllers = std::vector<std::string>() )
inline

Definition at line 814 of file move_group_interface.cpp.

◆ getClock()

◆ getCurrentState()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getCurrentState ( moveit::core::RobotStatePtr & current_state,
double wait_seconds = 1.0 )
inline

Definition at line 640 of file move_group_interface.cpp.

◆ getDefaultPlannerId()

Definition at line 335 of file move_group_interface.cpp.

◆ getDefaultPlanningPipelineId()

◆ getEndEffector()

◆ getEndEffectorLink()

◆ getGoalJointTolerance()

◆ getGoalOrientationTolerance()

◆ getGoalPositionTolerance()

◆ getInterfaceDescription()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getInterfaceDescription ( moveit_msgs::msg::PlannerInterfaceDescription & desc)
inline

Definition at line 246 of file move_group_interface.cpp.

◆ getInterfaceDescriptions()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getInterfaceDescriptions ( std::vector< moveit_msgs::msg::PlannerInterfaceDescription > & desc)
inline

Definition at line 263 of file move_group_interface.cpp.

◆ getJointModelGroup()

◆ getKnownConstraints()

◆ getMaxAccelerationScalingFactor()

◆ getMaxVelocityScalingFactor()

◆ getMoveGroupClient()

rclcpp_action::Client< moveit_msgs::action::MoveGroup > & moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getMoveGroupClient ( ) const
inline

Definition at line 241 of file move_group_interface.cpp.

◆ getOptions()

◆ getPathConstraints()

Definition at line 1162 of file move_group_interface.cpp.

◆ getPlannerId()

◆ getPlannerParams()

std::map< std::string, std::string > moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getPlannerParams ( const std::string & planner_id,
const std::string & group = "" )
inline

Definition at line 279 of file move_group_interface.cpp.

◆ getPlanningPipelineId()

◆ getPlanningTime()

◆ getPoseReferenceFrame()

◆ getPoseTarget()

const geometry_msgs::msg::PoseStamped & moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getPoseTarget ( const std::string & end_effector_link) const
inline

Definition at line 569 of file move_group_interface.cpp.

◆ getPoseTargets()

const std::vector< geometry_msgs::msg::PoseStamped > & moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getPoseTargets ( const std::string & end_effector_link) const
inline

Definition at line 587 of file move_group_interface.cpp.

◆ getRobotModel()

const moveit::core::RobotModelConstPtr & moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getRobotModel ( ) const
inline

Definition at line 231 of file move_group_interface.cpp.

◆ getStartState()

◆ getTargetRobotState() [1/2]

◆ getTargetRobotState() [2/2]

◆ getTargetType()

◆ getTF()

const std::shared_ptr< tf2_ros::Buffer > & moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::getTF ( ) const
inline

Definition at line 221 of file move_group_interface.cpp.

◆ getTrajectoryConstraints()

Definition at line 1174 of file move_group_interface.cpp.

◆ hasPoseTarget()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::hasPoseTarget ( const std::string & end_effector_link) const
inline

Definition at line 563 of file move_group_interface.cpp.

◆ initializeConstraintsStorage()

Definition at line 1186 of file move_group_interface.cpp.

◆ move()

◆ plan()

◆ setEndEffectorLink()

Definition at line 508 of file move_group_interface.cpp.

◆ setGoalJointTolerance()

◆ setGoalOrientationTolerance()

◆ setGoalPositionTolerance()

◆ setJointValueTarget()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setJointValueTarget ( const geometry_msgs::msg::Pose & eef_pose,
const std::string & end_effector_link,
const std::string & frame,
bool approx )
inline

Definition at line 448 of file move_group_interface.cpp.

◆ setMaxAccelerationScalingFactor()

◆ setMaxScalingFactor()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setMaxScalingFactor ( double & variable,
const double target_value,
const char * factor_name,
double fallback_value )
inline

Definition at line 390 of file move_group_interface.cpp.

◆ setMaxVelocityScalingFactor()

◆ setNumPlanningAttempts()

Definition at line 365 of file move_group_interface.cpp.

◆ setPathConstraints() [1/2]

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setPathConstraints ( const moveit_msgs::msg::Constraints & constraint)
inline

Definition at line 1105 of file move_group_interface.cpp.

◆ setPathConstraints() [2/2]

◆ setPlannerId()

Definition at line 355 of file move_group_interface.cpp.

◆ setPlannerParams()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setPlannerParams ( const std::string & planner_id,
const std::string & group,
const std::map< std::string, std::string > & params,
bool replace = false )
inline

Definition at line 297 of file move_group_interface.cpp.

◆ setPlanningPipelineId()

◆ setPlanningTime()

◆ setPoseReferenceFrame()

Definition at line 604 of file move_group_interface.cpp.

◆ setPoseTargets()

bool moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setPoseTargets ( const std::vector< geometry_msgs::msg::PoseStamped > & poses,
const std::string & end_effector_link )
inline

Definition at line 544 of file move_group_interface.cpp.

◆ setStartState() [1/2]

◆ setStartState() [2/2]

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setStartState ( const moveit_msgs::msg::RobotState & start_state)
inline

Definition at line 422 of file move_group_interface.cpp.

◆ setStartStateToCurrentState()

◆ setTargetType()

◆ setTrajectoryConstraints()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setTrajectoryConstraints ( const moveit_msgs::msg::TrajectoryConstraints & constraint)
inline

Definition at line 1137 of file move_group_interface.cpp.

◆ setWorkspace()

void moveit::planning_interface::MoveGroupInterface::MoveGroupInterfaceImpl::setWorkspace ( double minx,
double miny,
double minz,
double maxx,
double maxy,
double maxz )
inline

Definition at line 1195 of file move_group_interface.cpp.

◆ startStateMonitor()

◆ stop()


The documentation for this class was generated from the following file: