PyRIDE
0.1.0
|
PyPR2 is the main Python extension module of PyRIDE on PR2/ROS system. More...
Public Member Functions | |
listTFFrames () | |
Return a list of supported PR2 TF frame names. | |
isSupportedTFFrame () | |
Check whether the input TF frame is supported in the current system. | |
useMoveIt () | |
Return whether MoveIt is in use. | |
moveTorsoBy (length, best_time) | |
Move the PR2 torso height by a certain length. | |
moveBodyTo (x, y, theta, best_time) | |
Move the PR2 body to a pose at (x,y,theta). | |
moveBodyWithSpeed (x, y, theta) | |
Set the PR2 body moving speed in the form of (x,y,theta). | |
moveHeadTo (head_yaw, head_pitch) | |
Move the PR2 head to a specific yaw and pitch position. | |
pointHeadTo (reference_frame, x, y, z) | |
Point the PR2 head towards a specific coordinates in a reference frame. | |
getHeadPos () | |
Get the current robot head yaw and pitch in radian. | |
getJointPos (joint_name) | |
Get the current (angle) position of a joint. | |
getPositionForJoints (joint_names) | |
Get the current (angle) position of a joint. | |
getArmJointPositions (left_arm) | |
Get the current joint positions of one of the PR2 arm. | |
getRobotPose () | |
Get the current PR2 body pose. | |
getRelativeTF (reference_frame, frame) | |
Get the relative position and orientation of an input frame w.r.t to a reference frame. | |
tuckBothArms () | |
Tuck both PR2 arms to their safe positions. | |
navigateBodyTo (target_position, target_orientation) | |
Navigate PR2 body to a specified pose. | |
moveArmTo (position, orientation, use_left_arm) | |
Move a PR2 arm to a specified pose. | |
moveArmInTrajectory (trajectory, period, left_arm, relative) | |
Move a PR2 arm to a specified trajectory. | |
getArmPose (left_arm) | |
Get the current arm pose in task space with respect to base_foot_print TF frame. | |
moveArmWithJointPos (joint_position, time_to_reach) | |
Move a PR2 arm to the specified joint position within a time frame. | |
moveArmWithJointTrajectory (joint_trajectory) | |
Move a PR2 arm to a sequence of waypoints, i.e. joint trajectory. | |
moveArmWithJointTrajectoryAndSpeed (joint_trajectory) | |
Move a PR2 arm to a sequence of waypoints, i.e. joint trajectory, coupled with associated joint velocities. | |
moveArmWithJointVelocity (joint_velocities) | |
Move a PR2 arm with raw joint velocity command. | |
cancelMoveArmAction (is_left_arm) | |
Cancel current arm movement action invoked by PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call. | |
useJointVelocityControl (enable) | |
Enable or disable the use of joint velocity controllers. | |
cancelMoveBodyAction () | |
Cancel current body movement action invoked by PyPR2.moveBodyTo or PyPR2.moveBodyWithSpeed method call. | |
openGripper (which_gripper) | |
Opens one or both PR2 grippers. | |
closeGripper (which_gripper) | |
Closes one or both PR2 grippers. | |
setGripperPosition (which_gripper, position) | |
Opens one or both PR2 grippers. | |
setTiltLaserPeriodic (amplitude, period) | |
Set the PR2 tilt laser in a pure periodic movement. | |
setTiltLaserTraj (positions, durations) | |
Set a specific sequence of repeated PR2 tilt laser position. | |
registerBaseScanCallback (laser_data_callback, target_frame) | |
Register a callback function for receiving base laser scan data. None object can be used to stop receiving the scan data. If target frame is provided, the 3D position (x,y,z) w.r.t the target frame will be returned. Otherwise, raw laser scan data is returned. | |
registerTiltScanCallback (laser_data_callback, target_frame) | |
Register a callback function for receiving tilt laser scan data. None object can be used to stop receiving the scan data. If target frame is provided, the 3D position (x,y,z) w.r.t the target frame will be returned. Otherwise, raw laser scan data is returned. | |
addSolidObject (name, volume, position, orientation) | |
Add a solid object to the current collision scene. | |
delSolidObject () | |
Delete an existing solid object from the current collision scene. | |
listSolidObjects () | |
Return a list of known solid objects in the collision scene. | |
pickUpObject (name, place, grasp_position, grasp_orientation, use_left_arm, distance_from) | |
Pickup a solid object from a location (another solid object) use a specific grasp pose and approaching distance. | |
placeObject (name, place, place_position, place_orientation, use_left_arm, distance_from) | |
Place a solid object to a location (another solid object) use a specific place pose and retreating distance. | |
setTeamMemberID (member_id, team_id) | |
Sets the ID number of the robot. | |
say (text) | |
Use Text-to-Speech system to say the input text. | |
sendTeamMessage (message) | |
Broadcast a message to other robots in the same team (colour). | |
Remote Client Access Functions | |
onRemoteCommand (cmd_id, cmd_text) | |
Callback function when a custom command is received from a remote client. | |
onUserLogOn (user_name) | |
Callback function when a user logs in through a remote client. | |
onUserLogOff (user_name) | |
Callback function when a remote user logs off. | |
disconnect (username) | |
Disconnect all remote clients. | |
blockRemoteExclusiveControl (toblock) | |
Block or unblock exclusive control of connected remote clients. | |
updateOperationalStatus (op_state, op_text) | |
Send robot operational status notification to all connected remote clients. | |
Timer Management Functions | |
onTimer (timer_id) | |
Callback function when a timer object is fired. | |
onTimerLapsed (timer_id) | |
Callback function when a timer object is fired for the last time. | |
addTimer (init_start, repeats, interval) | |
Add a timer object. | |
removeTimer (timer_id) | |
Remove a timer object. | |
isTimerRunning (timer_id) | |
Check whether a timer object is still alive. | |
removeAllTimers () | |
Remove all timer objects in the system. | |
Miscellaneous Functions | |
onSnapshotImage (image_name) | |
Callback function when PyPR2.takeCameraSnapshot is called. | |
setToMannequinMode (to_set) | |
Set PR2 to the mannequin mode. | |
startDataRecording (data_type, output_file) | |
Start to record various sensor data into a ROS bag file. | |
stopDataRecording () | |
Stop recording PR2 sensor data. | |
startJoystickControl () | |
Start controlling PR2 with a PS3 joystick. | |
stopJoystickControl () | |
Stop controlling PR2 with a PS3 joystick. | |
setProjectorOff (to_set) | |
Set PR2's texture projector to off or on. | |
getBatteryStatus () | |
Return the current robot battery status. | |
getLowPowerThreshold () | |
Return the current low power threshold. | |
setLowPowerThreshold (battery_percentage) | |
Set the low power threshold. | |
takeCameraSnapshot (all_camera) | |
Take a snapshot for the robot camera(s) | |
getMyIPAddress () | |
Get the IP address of the robot. | |
Remote Client User Management Functions | |
listCurrentUsers () | |
Return a list of users who are currently logged in through remote clients. | |
listAllUsers () | |
Return a list of users who can log in remotely. | |
saveConfiguration () | |
Save the current user access configuration. | |
addUser (user_name, user_password) | |
Add a new remote user into the system. | |
removeUser (user_name) | |
Remove an existing remote user from the system. | |
changeUserPassword (user_name, old_password, new_password) | |
Change an existing remote user's password. | |
Action Callback Functions | |
onHeadActionSuccess () | |
Callback function when PyPR2.pointHeadTo method call is successful. | |
onHeadActionFailed () | |
Callback function when PyPR2.pointHeadTo method call is failed. | |
onMoveArmActionSuccess (is_left_arm) | |
Callback function when PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call is successful. | |
onMoveArmActionFailed (is_left_arm) | |
Callback function when PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call is failed. | |
onMoveTorsoSuccess () | |
Callback function when PyPR2.moveTorsoBy method call is successful. | |
onMoveTorsoFailed () | |
Callback function when PyPR2.moveTorsoBy method call is failed. | |
onNavigateBodySuccess () | |
Callback function when PyPR2.navigateBodyTo method call is successful. | |
onNavigateBodyFailed () | |
Callback function when PyPR2.navigateBodyTo method call is failed. | |
onGripperActionSuccess (is_left_gripper) | |
Callback function when PyPR2.openGripper, PyPR2.closeGripper and PyPR2.setGripperPosition method call is successful. | |
onGripperActionFailed (is_left_gripper) | |
Callback function when PyPR2.openGripper, PyPR2.closeGripper and PyPR2.setGripperPosition method call is failed. | |
onPowerPluggedChange (is_plugged_in) | |
Callback function when PR2 power status changes. | |
onBatteryChargeChange (battery_status) | |
Callback function when PR2 battery status changes. | |
onMoveBodySuccess () | |
Callback function when PyPR2.moveBodyTo method call is successful. | |
onMoveBodyFailed () | |
Callback function when PyPR2.moveBodyTo method call is failed. | |
Miscellaneous Callback Functions | |
onNodeStatusUpdate (data) | |
Callback function invoked when an external ROS node dispatch status update message to PyRIDE on pyride_pr2/node_status topic. |
PyPR2 is the main Python extension module of PyRIDE on PR2/ROS system.
PyPR2 module consists of a set of callable Python methods specifically related to PR2 low level functionalities and a set of callback functions that should be implemented by PR2 programmers.
addSolidObject | ( | name | , |
volume | , | ||
position | , | ||
orientation | |||
) |
Add a solid object to the current collision scene.
string | name. Name of the solid object. |
tuple | volume. The volume of the object in (width,height,depth). |
tuple | position. Position of the object in (x,y,z). |
tuple | orientation. Orientation of the object in quaternion form (w,x,y,z). |
addTimer | ( | init_start | , |
repeats | , | ||
interval | |||
) |
Add a timer object.
int | init_start. Initial start time (in seconds) after the method is called. |
long | repeats. A number of times the timer shall be called. -1 means infinite. |
int | interval. Time interval (in seconds) between timer callbacks. |
addUser | ( | user_name | , |
user_password | |||
) |
Add a new remote user into the system.
str | user_name. |
str | user_password. |
blockRemoteExclusiveControl | ( | toblock | ) |
Block or unblock exclusive control of connected remote clients.
Allow or block the exclusive control right of remote clients. If a client has already taken the exclusive control, the control right will be revoked when the input is set to True.
bool | toblock. True for block; False for unblock. |
cancelMoveArmAction | ( | is_left_arm | ) |
Cancel current arm movement action invoked by PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call.
bool | is_left_arm. True cancels the left arm movement; False cancels the right arm movement. |
Cancel current body movement action invoked by PyPR2.moveBodyTo or PyPR2.moveBodyWithSpeed method call.
changeUserPassword | ( | user_name | , |
old_password | , | ||
new_password | |||
) |
Change an existing remote user's password.
str | user_name name. |
str | old_password. |
str | new_password. |
closeGripper | ( | which_gripper | ) |
Closes one or both PR2 grippers.
int | which_gripper. 1 = left gripper, 2 = right gripper and 3 = both grippers. |
delSolidObject | ( | ) |
Delete an existing solid object from the current collision scene.
string | name. Name of the solid object. |
disconnect | ( | username | ) |
Disconnect all remote clients.
str | username. Optional name of an online user to be disconnected. If no username is provided. All connected clients will be disconnected. |
getArmJointPositions | ( | left_arm | ) |
Get the current joint positions of one of the PR2 arm.
bool | left_arm. True for left arm; False for right arm. |
getArmPose | ( | left_arm | ) |
Get the current arm pose in task space with respect to base_foot_print TF frame.
bool | left_arm. True == left arm; False == right arm. |
getBatteryStatus | ( | ) |
Return the current robot battery status.
getHeadPos | ( | ) |
Get the current robot head yaw and pitch in radian.
getJointPos | ( | joint_name | ) |
Get the current (angle) position of a joint.
str | joint_name. Name of a joint. |
Return the current low power threshold.
getMyIPAddress | ( | ) |
Get the IP address of the robot.
getPositionForJoints | ( | joint_names | ) |
Get the current (angle) position of a joint.
list | joint_names. A list of joint names. |
getRelativeTF | ( | reference_frame | , |
frame | |||
) |
Get the relative position and orientation of an input frame w.r.t to a reference frame.
str | reference_frame. Label of reference TF frame. |
str | frame. Label of the target frame. |
getRobotPose | ( | ) |
Get the current PR2 body pose.
Check whether the input TF frame is supported in the current system.
string | frame. Name of the TF frame. |
isTimerRunning | ( | timer_id | ) |
Check whether a timer object is still alive.
long | timer_id. ID of the timer object. |
listAllUsers | ( | ) |
Return a list of users who can log in remotely.
listCurrentUsers | ( | ) |
Return a list of users who are currently logged in through remote clients.
listSolidObjects | ( | ) |
Return a list of known solid objects in the collision scene.
listTFFrames | ( | ) |
Return a list of supported PR2 TF frame names.
moveArmInTrajectory | ( | trajectory | , |
period | , | ||
left_arm | , | ||
relative | |||
) |
Move a PR2 arm to a specified trajectory.
list | trajectory. A list of way points which consists of arm pose dictionaries { 'position', 'orientation' }. |
float | period. The execution period for completing the trajectory. |
bool | left_arm. True to use the left arm; False to use the right arm (default False) |
bool | relative. True means the input trajectory is relative to the current arm pose; False means the trajectory is with respect to the basefoot_print reference frame. |
moveArmTo | ( | position | , |
orientation | , | ||
use_left_arm | |||
) |
Move a PR2 arm to a specified pose.
tuple | position. Target position in (x,y,z) w.r.t to odometry_combined reference frame. |
tuple | orientation. Orientation in quaternion form (w,x,y,z). |
bool | use_left_arm. True to move the left arm; False to use the right arm. |
bool | wait. True == method blocks; False == method return immediately. (Use this parameter only for S-PR2). |
moveArmWithJointPos | ( | joint_position | , |
time_to_reach | |||
) |
Move a PR2 arm to the specified joint position within a time frame.
dict | joint_position. A dictionary of arm joint positions in radian. The dictionary must the same structure as the return of PyPR2.getArmJointPositions. |
float | time_to_reach. Timeframe for reaching the pose. |
moveArmWithJointTrajectory | ( | joint_trajectory | ) |
Move a PR2 arm to a sequence of waypoints, i.e. joint trajectory.
list | joint_trajectory. A list of waypoints that contain joint position dictionaries with the same structure of the PyPR2.moveArmWithJointPos. |
moveArmWithJointTrajectoryAndSpeed | ( | joint_trajectory | ) |
Move a PR2 arm to a sequence of waypoints, i.e. joint trajectory, coupled with associated joint velocities.
list | joint_trajectory. A list of waypoints with the joint data dictionaries structure of { "joint_name" : { "position" : value, "velocity" : value }, ... }. Each list item, i.e. a waypoint must also have a time to reach value that is consistent with the joint velocities at the adjacent waypoints. |
moveArmWithJointVelocity | ( | joint_velocities | ) |
Move a PR2 arm with raw joint velocity command.
list | joint_velocities. A joint velocity dictionaries with the same structure of the PyPR2.moveArmWithJointPos without time_to_reach parameter. |
moveBodyTo | ( | x | , |
y | , | ||
theta | , | ||
best_time | |||
) |
Move the PR2 body to a pose at (x,y,theta).
float | x. X coordinate w.r.t. the current pose. |
float | y. Y coordinate w.r.t. the current pose. |
float | theta. Angular position w.r.t. the current pose. |
float | best_time. Optional, ask the robot try its best to reach the input pose in this timeframe. |
moveBodyWithSpeed | ( | x | , |
y | , | ||
theta | |||
) |
Set the PR2 body moving speed in the form of (x,y,theta).
float | x. Speed(m/s) in X axis direction. |
float | y. Speed(m/s) in Y axis direction. |
float | theta. Angular turning rate (rad/s) w.r.t Z axis. |
moveHeadTo | ( | head_yaw | , |
head_pitch | |||
) |
Move the PR2 head to a specific yaw and pitch position.
float | head_yaw. Must be in radian. |
float | head_pitch. Must be in radian. |
bool | relative. True == relative angle values; False == absolute angle values. Optional, default is False. |
moveTorsoBy | ( | length | , |
best_time | |||
) |
Move the PR2 torso height by a certain length.
float | length. The relative change in torso height. |
float | best_time. Optional, ask the robot try its best to reach the input pose in this timeframe. |
navigateBodyTo | ( | target_position | , |
target_orientation | |||
) |
Navigate PR2 body to a specified pose.
tuple | target_position. Position in the form of (x,y,z). |
tuple | target_orientation. Orientation in quaternion form (w,x,y,z). |
onBatteryChargeChange | ( | battery_status | ) |
Callback function when PR2 battery status changes.
tuple | battery_status. A tuple of (battery percentage,is_charging,is_battery_below_threshold). |
onGripperActionFailed | ( | is_left_gripper | ) |
Callback function when PyPR2.openGripper, PyPR2.closeGripper and PyPR2.setGripperPosition method call is failed.
bool | is_left_gripper. True means left gripper; False means right gripper. |
onGripperActionSuccess | ( | is_left_gripper | ) |
Callback function when PyPR2.openGripper, PyPR2.closeGripper and PyPR2.setGripperPosition method call is successful.
bool | is_left_gripper. True means left gripper; False means right gripper. |
Callback function when PyPR2.pointHeadTo method call is failed.
Callback function when PyPR2.pointHeadTo method call is successful.
onMoveArmActionFailed | ( | is_left_arm | ) |
Callback function when PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call is failed.
bool | is_left_arm. True = left arm; False = right arm. |
onMoveArmActionSuccess | ( | is_left_arm | ) |
Callback function when PyPR2.moveArmWithJointPos or PyPR2.moveArmWithJointTrajectory method call is successful.
bool | is_left_arm. True = left arm; False = right arm. |
onMoveBodyFailed | ( | ) |
Callback function when PyPR2.moveBodyTo method call is failed.
Callback function when PyPR2.moveBodyTo method call is successful.
Callback function when PyPR2.moveTorsoBy method call is failed.
Callback function when PyPR2.moveTorsoBy method call is successful.
Callback function when PyPR2.navigateBodyTo method call is failed.
Callback function when PyPR2.navigateBodyTo method call is successful.
onNodeStatusUpdate | ( | data | ) |
Callback function invoked when an external ROS node dispatch status update message to PyRIDE on pyride_pr2/node_status topic.
dictionary | data. node status message in the format of {'node', 'timestamp', 'priority', 'message' }. |
onPowerPluggedChange | ( | is_plugged_in | ) |
Callback function when PR2 power status changes.
bool | is_plugged_in. True if the robot is plugged in main power. |
onRemoteCommand | ( | cmd_id | , |
cmd_text | |||
) |
Callback function when a custom command is received from a remote client.
int | cmd_id. Custom command ID. |
str | cmd_text. Custom command text string. |
onSnapshotImage | ( | image_name | ) |
Callback function when PyPR2.takeCameraSnapshot is called.
str | image_name. Path for the saved image. |
onTimer | ( | timer_id | ) |
Callback function when a timer object is fired.
int | timer_id. ID of the timer object. |
onTimerLapsed | ( | timer_id | ) |
Callback function when a timer object is fired for the last time.
int | timer_id. ID of the timer object. |
onUserLogOff | ( | user_name | ) |
Callback function when a remote user logs off.
str | user_name. The name of the user. |
onUserLogOn | ( | user_name | ) |
Callback function when a user logs in through a remote client.
str | user_name. The name of the user. |
openGripper | ( | which_gripper | ) |
Opens one or both PR2 grippers.
int | which_gripper. 1 = left gripper, 2 = right gripper and 3 = both grippers. |
pickUpObject | ( | name | , |
place | , | ||
grasp_position | , | ||
grasp_orientation | , | ||
use_left_arm | , | ||
distance_from | |||
) |
Pickup a solid object from a location (another solid object) use a specific grasp pose and approaching distance.
string | name. Name of the solid object. |
string | name. Name of the object from where the target object is picked up from. |
tuple | grasp_position. Grasp position (x,y,z). |
tuple | grasp_orientation. Grasp orientation in quaternion form (w,x,y,z). |
bool | use_left_arm. True == use the left arm; False = use the right arm. |
float | distance_from. Approaching distance from the object. |
placeObject | ( | name | , |
place | , | ||
place_position | , | ||
place_orientation | , | ||
use_left_arm | , | ||
distance_from | |||
) |
Place a solid object to a location (another solid object) use a specific place pose and retreating distance.
string | name. Name of the solid object. |
string | name. Name of the object from where the target object is placed to. |
tuple | place_position. Place position (x,y,z). |
tuple | place_orientation. Place orientation in quaternion form (w,x,y,z). |
bool | use_left_arm. True == use the left arm; False = use the right arm. |
float | distance_from. Retreating distance from the object. |
pointHeadTo | ( | reference_frame | , |
x | , | ||
y | , | ||
z | |||
) |
Point the PR2 head towards a specific coordinates in a reference frame.
str | reference_frame. Text label for the requested reference frame (TF frame name). |
float | x. X coordinate. |
float | y. Y coordinate. |
float | z. Z coordinate. |
registerBaseScanCallback | ( | laser_data_callback | , |
target_frame | |||
) |
Register a callback function for receiving base laser scan data. None object can be used to stop receiving the scan data. If target frame is provided, the 3D position (x,y,z) w.r.t the target frame will be returned. Otherwise, raw laser scan data is returned.
callback | laser_data_callback. Function that takes a list of raw laser range data or 3D position data as the input. |
string | target_frame. Optional, the name of the target frame |
registerTiltScanCallback | ( | laser_data_callback | , |
target_frame | |||
) |
Register a callback function for receiving tilt laser scan data. None object can be used to stop receiving the scan data. If target frame is provided, the 3D position (x,y,z) w.r.t the target frame will be returned. Otherwise, raw laser scan data is returned.
callback | laser_data_callback. Function that takes a list of raw laser range data or 3D position data as the input. |
string | target_frame. Optional, the name of the target frame. |
removeAllTimers | ( | ) |
Remove all timer objects in the system.
removeTimer | ( | timer_id | ) |
Remove a timer object.
long | timer_id. ID of the timer object pending for removal. |
removeUser | ( | user_name | ) |
Remove an existing remote user from the system.
str | user_name name. |
Save the current user access configuration.
say | ( | text | ) |
Use Text-to-Speech system to say the input text.
str | text. Text to be spoken by the robot. |
sendTeamMessage | ( | message | ) |
Broadcast a message to other robots in the same team (colour).
str | message. A text based message. |
setGripperPosition | ( | which_gripper | , |
position | |||
) |
Opens one or both PR2 grippers.
int | which_gripper. 1 = left gripper, 2 = right gripper and 3 = both grippers. |
float | position. Must be in range of [0.0,0.08]. |
setLowPowerThreshold | ( | battery_percentage | ) |
Set the low power threshold.
When the threshold is greater than zero this level, callback PyPR2.onBatteryChargeChange or PyPR2.onPowerPluggedChange will be invoked when battery status changes.
int | battery_percentage. Must be non-negative. |
setProjectorOff | ( | to_set | ) |
Set PR2's texture projector to off or on.
bool | to_set. True = set projector off; False = set projector on. |
setTeamMemberID | ( | member_id | , |
team_id | |||
) |
Sets the ID number of the robot.
The robot can be assigned as a member of blue team (number 1) or pink team (number 2). This facilitates robot to robot communication.
int | member_id. Must be a non-negative integer. |
int | team_id. Must be either 1 (blue team) or 2 (pink team). |
setTiltLaserPeriodic | ( | amplitude | , |
period | |||
) |
Set the PR2 tilt laser in a pure periodic movement.
float | amplitude. Must be non-negative. Amplitude of the periodic movement. |
float | period. Must be non-negative. Time period of the movement. |
setTiltLaserTraj | ( | positions | , |
durations | |||
) |
Set a specific sequence of repeated PR2 tilt laser position.
list | positions. A list of (minimum two) tilt laser positions. |
list | durations. A list of corresponding durations at the defined tilt laser position. |
setToMannequinMode | ( | to_set | ) |
Set PR2 to the mannequin mode.
bool | to_set. True = mannequin mode; False = normal mode. |
startDataRecording | ( | data_type | , |
output_file | |||
) |
Start to record various sensor data into a ROS bag file.
int | data_type. Types of sensor data to be recorded. Different sensor datatype can be concate together with '|'. |
str | output_file. Optional output file name path. |
Start controlling PR2 with a PS3 joystick.
Stop recording PR2 sensor data.
Stop controlling PR2 with a PS3 joystick.
takeCameraSnapshot | ( | all_camera | ) |
Take a snapshot for the robot camera(s)
bool | all_camera. Take a snapshot from all available cameras. |
tuckBothArms | ( | ) |
Tuck both PR2 arms to their safe positions.
updateOperationalStatus | ( | op_state | , |
op_text | |||
) |
Send robot operational status notification to all connected remote clients.
int | op_state. Must be a positive integer representing the operational status. |
str | op_text. Optional text for the operational status. |
useJointVelocityControl | ( | enable | ) |
Enable or disable the use of joint velocity controllers.
bool | enable. True = load joint velocity controllers and stop using default joint trajectory action controller. False = switch back to use the joint trajectory action controller. |
useMoveIt | ( | ) |
Return whether MoveIt is in use.