moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
moveit_ros::trajectory_cache::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 120 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 125 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 924 of file move_group_interface.cpp.

◆ clearPathConstraints()

◆ clearPoseTarget()

Definition at line 509 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 874 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 1084 of file move_group_interface.cpp.

◆ constructMotionPlanRequest()

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

Definition at line 1030 of file move_group_interface.cpp.

◆ constructRobotState()

Definition at line 1025 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 806 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 636 of file move_group_interface.cpp.

◆ getDefaultPlannerId()

Definition at line 337 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 248 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 265 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 243 of file move_group_interface.cpp.

◆ getOptions()

◆ getPathConstraints()

Definition at line 1142 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 281 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 565 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 583 of file move_group_interface.cpp.

◆ getRobotModel()

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

Definition at line 233 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 223 of file move_group_interface.cpp.

◆ getTrajectoryConstraints()

Definition at line 1154 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 559 of file move_group_interface.cpp.

◆ initializeConstraintsStorage()

Definition at line 1166 of file move_group_interface.cpp.

◆ move()

◆ plan()

◆ setEndEffectorLink()

Definition at line 504 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 450 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 392 of file move_group_interface.cpp.

◆ setMaxVelocityScalingFactor()

◆ setNumPlanningAttempts()

Definition at line 367 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 1089 of file move_group_interface.cpp.

◆ setPathConstraints() [2/2]

◆ setPlannerId()

Definition at line 357 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 299 of file move_group_interface.cpp.

◆ setPlanningPipelineId()

◆ setPlanningTime()

◆ setPoseReferenceFrame()

Definition at line 600 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 540 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 424 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 1117 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 1175 of file move_group_interface.cpp.

◆ startStateMonitor()

◆ stop()


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