Public Member Functions | |
pr2_controllers_msgs::JointTrajectoryGoal | armExtensionTrajectory () |
Generates a simple trajectory with two waypoints, used as an example. | |
actionlib::SimpleClientGoalState | getState () |
Returns the current state of the action. | |
RobotArm () | |
Initialize the action client and wait for action server to come up. | |
void | startTrajectory (pr2_controllers_msgs::JointTrajectoryGoal goal) |
Sends the command to start a given trajectory. | |
~RobotArm () | |
Clean up the action client. | |
Private Attributes | |
TrajClient * | traj_client_ |
Definition at line 9 of file move_arm.cpp.
RobotArm::RobotArm | ( | ) | [inline] |
Initialize the action client and wait for action server to come up.
Definition at line 18 of file move_arm.cpp.
RobotArm::~RobotArm | ( | ) | [inline] |
Clean up the action client.
Definition at line 30 of file move_arm.cpp.
pr2_controllers_msgs::JointTrajectoryGoal RobotArm::armExtensionTrajectory | ( | ) | [inline] |
Generates a simple trajectory with two waypoints, used as an example.
Note that this trajectory contains two waypoints, joined together as a single trajectory. Alternatively, each of these waypoints could be in its own trajectory - a trajectory can have one or more waypoints depending on the desired application.
Definition at line 54 of file move_arm.cpp.
actionlib::SimpleClientGoalState RobotArm::getState | ( | ) | [inline] |
Returns the current state of the action.
Definition at line 104 of file move_arm.cpp.
void RobotArm::startTrajectory | ( | pr2_controllers_msgs::JointTrajectoryGoal | goal | ) | [inline] |
Sends the command to start a given trajectory.
Definition at line 36 of file move_arm.cpp.
TrajClient* RobotArm::traj_client_ [private] |
Definition at line 14 of file move_arm.cpp.