motion_interface module

Classes for robot movement

Edited from official ROS tutorial by Lukas Rustler

class motion_interface.MoveGroupPythonInterface(group_)[source]

Bases: object

all_close(goal, actual, tolerance)[source]

Convenience method for testing if a list of values are within a tolerance of their counterparts in another list @param: goal A list of floats, a Pose or a PoseStamped @param: actual A list of floats, a Pose or a PoseStamped @param: tolerance A float @returns: bool

apply_planning_scene(scene_msg)[source]
close_gripper()[source]
display_trajectory(plan)[source]

Display trajectory in Rviz, the following code is needed for proper displaying.

execute_plan(plan, wait=True)[source]

Note: The robot’s current joint state must be within some tolerance of the first waypoint in the `RobotTrajectory`_ or execute() will fail

get_current_state()[source]
get_ee_pose(scale=1)[source]
go_to_joint_position(joint_goal)[source]
go_to_pose(pose, wait)[source]
open_gripper()[source]
plan_cartesian_path(wpose, collisions=True)[source]

Cartesian Paths

You can plan a Cartesian path directly by specifying a list of waypoints for the end-effector to go through:

stop_robot()[source]