$search
A class for controlling the PR2 using interactive markers. More...
#include <marker_control.h>
A class for controlling the PR2 using interactive markers.
Definition at line 71 of file marker_control.h.
PR2MarkerControl::PR2MarkerControl | ( | ) |
Constructor.
Definition at line 104 of file marker_control.cpp.
PR2MarkerControl::~PR2MarkerControl | ( | ) | [inline] |
Destructor.
Definition at line 79 of file marker_control.h.
void PR2MarkerControl::baseButtonCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [inline, protected] |
Definition at line 159 of file marker_control.h.
void PR2MarkerControl::cancelBaseMovement | ( | ) | [inline] |
Cancel any base movement.
Definition at line 118 of file marker_control.h.
bool PR2MarkerControl::checkStateValidity | ( | std::string | arm_name | ) | [protected] |
Checks if the arm pose is currently in collision.
Definition at line 763 of file marker_control.cpp.
void PR2MarkerControl::clearLocalCostmap | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
void PR2MarkerControl::commandGripperPose | ( | const geometry_msgs::PoseStamped & | ps, | |
int | arm_id, | |||
bool | use_offset | |||
) | [protected] |
Definition at line 964 of file marker_control.cpp.
void PR2MarkerControl::fastUpdate | ( | ) |
For fast updates, like changes to control and mesh marker poses.
Definition at line 180 of file marker_control.cpp.
double PR2MarkerControl::getJointPosition | ( | std::string | name, | |
const arm_navigation_msgs::RobotState & | robot_state | |||
) |
Finds the state of a given joint in the robot state.
Definition at line 328 of file marker_control.cpp.
void PR2MarkerControl::gripperButtonCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | id | |||
) | [protected] |
Turns the gripper controls on and off.
Definition at line 1109 of file marker_control.cpp.
void PR2MarkerControl::gripperClosureCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
const float & | command | |||
) | [protected] |
Definition at line 1182 of file marker_control.cpp.
void PR2MarkerControl::gripperResetControlCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 912 of file marker_control.cpp.
void PR2MarkerControl::gripperToggleControlCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 898 of file marker_control.cpp.
void PR2MarkerControl::gripperToggleFixedCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 884 of file marker_control.cpp.
void PR2MarkerControl::gripperToggleModeCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 860 of file marker_control.cpp.
void PR2MarkerControl::initAllMarkers | ( | bool | apply_immediately = false |
) | [inline] |
Re-initialize all interactive markers.
Definition at line 99 of file marker_control.h.
void PR2MarkerControl::initControlMarkers | ( | ) |
Re-initialize only the control markers (like the gripper-dragging frame).
Definition at line 343 of file marker_control.cpp.
void PR2MarkerControl::initMenus | ( | ) | [protected] |
Definition at line 1512 of file marker_control.cpp.
void PR2MarkerControl::initMeshMarkers | ( | ) |
Re-initialize only the mesh markers.
Definition at line 602 of file marker_control.cpp.
void PR2MarkerControl::moveArm | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
const std::string & | position, | |||
bool | planner | |||
) | [protected] |
Definition at line 1258 of file marker_control.cpp.
void PR2MarkerControl::moveArmThread | ( | std::string | arm_name, | |
std::string | position, | |||
bool | collision, | |||
bool | planner | |||
) | [protected] |
Definition at line 1275 of file marker_control.cpp.
void PR2MarkerControl::processGripperPoseFeedback | ( | const pr2_object_manipulation_msgs::GetGripperPoseFeedbackConstPtr & | result, | |
const std::string & | arm_name | |||
) | [protected] |
Definition at line 1238 of file marker_control.cpp.
void PR2MarkerControl::processGripperPoseResult | ( | const actionlib::SimpleClientGoalState & | state, | |
const pr2_object_manipulation_msgs::GetGripperPoseResultConstPtr & | result, | |||
const std::string & | arm_name | |||
) | [protected] |
Definition at line 1248 of file marker_control.cpp.
void PR2MarkerControl::processNavGoal | ( | const actionlib::SimpleClientGoalState & | state, | |
const pr2_object_manipulation_msgs::GetNavPoseResultConstPtr & | result, | |||
const bool & | collision_aware | |||
) | [protected] |
Definition at line 1475 of file marker_control.cpp.
void PR2MarkerControl::projectorMenuCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 828 of file marker_control.cpp.
void PR2MarkerControl::refreshPosture | ( | const std::string & | arm_name | ) | [inline, protected] |
Definition at line 165 of file marker_control.h.
void PR2MarkerControl::requestGripperPose | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | arm_id | |||
) | [protected] |
Definition at line 1205 of file marker_control.cpp.
void PR2MarkerControl::requestNavGoal | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
const bool & | collision_aware | |||
) | [protected] |
Definition at line 1420 of file marker_control.cpp.
void PR2MarkerControl::sendLastNavGoal | ( | ) | [protected] |
This is useful so we can bind it to a callback.
Definition at line 1491 of file marker_control.cpp.
void PR2MarkerControl::slowUpdate | ( | ) |
Used for lower frequency state updates.
Definition at line 229 of file marker_control.cpp.
void PR2MarkerControl::snapshotCB | ( | ) | [inline, protected] |
Definition at line 138 of file marker_control.h.
void PR2MarkerControl::startDualGrippers | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
bool | active | |||
) | [protected] |
Definition at line 928 of file marker_control.cpp.
void PR2MarkerControl::switchToCartesian | ( | ) | [protected] |
Activates the cartesian controllers for the grippers.
Definition at line 701 of file marker_control.cpp.
void PR2MarkerControl::switchToJoint | ( | ) | [protected] |
Activates the joint controllers for the grippers.
Definition at line 736 of file marker_control.cpp.
void PR2MarkerControl::targetPointMenuCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 815 of file marker_control.cpp.
geometry_msgs::PoseStamped PR2MarkerControl::toolToWrist | ( | const geometry_msgs::PoseStamped & | ps | ) |
Translate the tool pose to the wrist.
Translate the control pose to the wrist.
Definition at line 76 of file marker_control.cpp.
void PR2MarkerControl::torsoMenuCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 1368 of file marker_control.cpp.
void PR2MarkerControl::tuckArmsCB | ( | bool | tuck_left, | |
bool | tuck_right | |||
) | [inline, protected] |
Definition at line 172 of file marker_control.h.
void PR2MarkerControl::updateBase | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 1378 of file marker_control.cpp.
void PR2MarkerControl::updateDualGripper | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 1035 of file marker_control.cpp.
void PR2MarkerControl::updateGripper | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | arm_id | |||
) | [protected] |
Definition at line 992 of file marker_control.cpp.
void PR2MarkerControl::updateHeadGoal | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | arm_id | |||
) | [protected] |
Definition at line 789 of file marker_control.cpp.
void PR2MarkerControl::updatePosture | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | arm_id | |||
) | [protected] |
Definition at line 1151 of file marker_control.cpp.
void PR2MarkerControl::updateTorso | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Definition at line 1344 of file marker_control.cpp.
void PR2MarkerControl::upperArmButtonCB | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback, | |
int | id | |||
) | [protected] |
Definition at line 1130 of file marker_control.cpp.
geometry_msgs::PoseStamped PR2MarkerControl::wristToTool | ( | const geometry_msgs::PoseStamped & | ps | ) |
Translate the wrist pose to the tool frame.
Translate to the control pose.
Definition at line 89 of file marker_control.cpp.
Definition at line 309 of file marker_control.h.
Definition at line 269 of file marker_control.h.
object_manipulator::ActionWrapper<pr2_object_manipulation_msgs::GetNavPoseAction> PR2MarkerControl::base_pose_client_ [protected] |
Client for getting a base pose.
Definition at line 334 of file marker_control.h.
double PR2MarkerControl::cartesian_clip_angle_ [protected] |
Definition at line 320 of file marker_control.h.
double PR2MarkerControl::cartesian_clip_distance_ [protected] |
Definition at line 319 of file marker_control.h.
object_manipulator::ServiceWrapper<arm_navigation_msgs::GetStateValidity> PR2MarkerControl::check_state_validity_client_ [protected] |
Client for service that checks state validity.
Definition at line 329 of file marker_control.h.
object_manipulator::ServiceWrapper<std_srvs::Empty> PR2MarkerControl::collider_node_reset_srv_ [protected] |
Definition at line 330 of file marker_control.h.
ControlState PR2MarkerControl::control_state_ [protected] |
Definition at line 306 of file marker_control.h.
bool PR2MarkerControl::double_menu_ [protected] |
Definition at line 345 of file marker_control.h.
std::vector<tf::Transform> PR2MarkerControl::dual_gripper_offsets_ [protected] |
Definition at line 267 of file marker_control.h.
Definition at line 266 of file marker_control.h.
Definition at line 255 of file marker_control.h.
Definition at line 307 of file marker_control.h.
double PR2MarkerControl::gripper_control_angular_deadband_ [protected] |
Definition at line 317 of file marker_control.h.
double PR2MarkerControl::gripper_control_linear_deadband_ [protected] |
Definition at line 317 of file marker_control.h.
interactive_markers::MenuHandler::EntryHandle PR2MarkerControl::gripper_edit_control_handle_ [protected] |
Definition at line 257 of file marker_control.h.
interactive_markers::MenuHandler::EntryHandle PR2MarkerControl::gripper_fixed_control_handle_ [protected] |
Definition at line 256 of file marker_control.h.
object_manipulator::ActionWrapper<pr2_object_manipulation_msgs::GetGripperPoseAction> PR2MarkerControl::gripper_pose_client_ [protected] |
Client for getting a gripper pose.
Definition at line 337 of file marker_control.h.
interactive_markers::MenuHandler::EntryHandle PR2MarkerControl::gripper_reset_control_handle_ [protected] |
Definition at line 258 of file marker_control.h.
interactive_markers::MenuHandler::EntryHandle PR2MarkerControl::gripper_view_facing_handle_ [protected] |
Definition at line 254 of file marker_control.h.
Definition at line 264 of file marker_control.h.
std::string PR2MarkerControl::head_pointing_frame_ [protected] |
Definition at line 344 of file marker_control.h.
Definition at line 253 of file marker_control.h.
bool PR2MarkerControl::in_collision_l_ [protected] |
Definition at line 324 of file marker_control.h.
bool PR2MarkerControl::in_collision_r_ [protected] |
Definition at line 324 of file marker_control.h.
int PR2MarkerControl::interface_number_ [protected] |
For HRI user study.
Definition at line 340 of file marker_control.h.
Definition at line 249 of file marker_control.h.
Definition at line 250 of file marker_control.h.
double PR2MarkerControl::max_direct_nav_radius_ [protected] |
Definition at line 322 of file marker_control.h.
Definition at line 312 of file marker_control.h.
Menu handles for the robot.
Definition at line 238 of file marker_control.h.
Definition at line 245 of file marker_control.h.
Definition at line 243 of file marker_control.h.
Definition at line 244 of file marker_control.h.
Definition at line 242 of file marker_control.h.
Definition at line 239 of file marker_control.h.
Definition at line 241 of file marker_control.h.
Definition at line 240 of file marker_control.h.
std::string PR2MarkerControl::move_base_node_name_ [protected] |
Name of the move base node.
Definition at line 348 of file marker_control.h.
ros::NodeHandle PR2MarkerControl::nh_ [protected] |
Definition at line 230 of file marker_control.h.
ros::NodeHandle PR2MarkerControl::pnh_ [protected] |
Definition at line 231 of file marker_control.h.
std::vector<tf::Transform> PR2MarkerControl::pose_offset_ [protected] |
Definition at line 262 of file marker_control.h.
Definition at line 251 of file marker_control.h.
Definition at line 252 of file marker_control.h.
Definition at line 234 of file marker_control.h.
ros::Timer PR2MarkerControl::slow_sync_timer_ [protected] |
Definition at line 233 of file marker_control.h.
CloudHandler PR2MarkerControl::snapshot_client_ [protected] |
Definition at line 331 of file marker_control.h.
ros::Timer PR2MarkerControl::spin_timer_ [protected] |
Definition at line 232 of file marker_control.h.
boost::shared_ptr< boost::thread > PR2MarkerControl::sys_thread_ [protected] |
Definition at line 326 of file marker_control.h.
int PR2MarkerControl::task_number_ [protected] |
For HRI user study.
Definition at line 342 of file marker_control.h.
tf::TransformListener PR2MarkerControl::tfl_ [protected] |
Definition at line 260 of file marker_control.h.
Definition at line 263 of file marker_control.h.
Definition at line 308 of file marker_control.h.
Definition at line 310 of file marker_control.h.
Menu Entry handles for some important ones.
Definition at line 248 of file marker_control.h.
double PR2MarkerControl::update_period_ [protected] |
Definition at line 318 of file marker_control.h.
bool PR2MarkerControl::use_left_arm_ [protected] |
Definition at line 316 of file marker_control.h.
bool PR2MarkerControl::use_right_arm_ [protected] |
Definition at line 315 of file marker_control.h.
bool PR2MarkerControl::use_state_validator_ [protected] |
Definition at line 314 of file marker_control.h.
bool PR2MarkerControl::using_3d_nav_ [protected] |
Are we using 3D navigation?
Definition at line 351 of file marker_control.h.