#include <joint_trajectory_action_controller.h>
Definition at line 49 of file joint_trajectory_action_controller.h.
typedef actionlib::SimpleActionServer<control_msgs::FollowJointTrajectoryAction> katana::JointTrajectoryActionController::FJTAS [private] |
Definition at line 57 of file joint_trajectory_action_controller.h.
typedef actionlib::SimpleActionClient<pr2_controllers_msgs::JointTrajectoryAction> katana::JointTrajectoryActionController::JTAC [private] |
Definition at line 54 of file joint_trajectory_action_controller.h.
typedef actionlib::SimpleActionServer<pr2_controllers_msgs::JointTrajectoryAction> katana::JointTrajectoryActionController::JTAS [private] |
Definition at line 53 of file joint_trajectory_action_controller.h.
anonymous enum [private] |
Definition at line 68 of file joint_trajectory_action_controller.h.
katana::JointTrajectoryActionController::JointTrajectoryActionController | ( | boost::shared_ptr< AbstractKatana > | katana | ) |
Definition at line 36 of file joint_trajectory_action_controller.cpp.
Definition at line 71 of file joint_trajectory_action_controller.cpp.
Checks that all joint velocities are zero.
Definition at line 605 of file joint_trajectory_action_controller.cpp.
boost::shared_ptr< SpecifiedTrajectory > katana::JointTrajectoryActionController::calculateTrajectory | ( | const trajectory_msgs::JointTrajectory & | msg | ) | [private] |
Definition at line 207 of file joint_trajectory_action_controller.cpp.
void katana::JointTrajectoryActionController::commandCB | ( | const trajectory_msgs::JointTrajectory::ConstPtr & | msg | ) | [private] |
Callback for the "command" topic. There are two ways of sending a trajectory: 1. by publishing a message to the "command" topic (this is what happens here) 2. by using the action server (see executeCB)
Definition at line 191 of file joint_trajectory_action_controller.cpp.
void katana::JointTrajectoryActionController::executeCB | ( | const JTAS::GoalConstPtr & | goal | ) | [private] |
Definition at line 422 of file joint_trajectory_action_controller.cpp.
void katana::JointTrajectoryActionController::executeCBFollow | ( | const FJTAS::GoalConstPtr & | goal | ) | [private] |
Definition at line 445 of file joint_trajectory_action_controller.cpp.
int katana::JointTrajectoryActionController::executeCommon | ( | const trajectory_msgs::JointTrajectory & | trajectory, |
boost::function< bool()> | isPreemptRequested | ||
) | [private] |
Definition at line 471 of file joint_trajectory_action_controller.cpp.
bool katana::JointTrajectoryActionController::goalReached | ( | ) | [private] |
Checks that we have ended inside the goal constraints.
Definition at line 591 of file joint_trajectory_action_controller.cpp.
std::vector< int > katana::JointTrajectoryActionController::makeJointsLookup | ( | const trajectory_msgs::JointTrajectory & | msg | ) | [private] |
Definition at line 616 of file joint_trajectory_action_controller.cpp.
bool katana::JointTrajectoryActionController::queryStateService | ( | pr2_controllers_msgs::QueryTrajectoryState::Request & | req, |
pr2_controllers_msgs::QueryTrajectoryState::Response & | resp | ||
) | [private] |
provides the "query_state" service
Definition at line 363 of file joint_trajectory_action_controller.cpp.
Sets the current trajectory to a simple "hold position" trajectory
Definition at line 80 of file joint_trajectory_action_controller.cpp.
void katana::JointTrajectoryActionController::update | ( | void | ) |
Definition at line 99 of file joint_trajectory_action_controller.cpp.
bool katana::JointTrajectoryActionController::validJoints | ( | std::vector< std::string > | new_joint_names | ) | [private] |
bool katana::JointTrajectoryActionController::validTrajectory | ( | const SpecifiedTrajectory & | traj | ) | [private] |
Checks if the given KNI trajectory fulfills all constraints.
traj | the KNI trajectory to sample |
Definition at line 646 of file joint_trajectory_action_controller.cpp.
Definition at line 92 of file joint_trajectory_action_controller.h.
Definition at line 93 of file joint_trajectory_action_controller.h.
Definition at line 89 of file joint_trajectory_action_controller.h.
boost::shared_ptr<SpecifiedTrajectory> katana::JointTrajectoryActionController::current_trajectory_ [private] |
Definition at line 98 of file joint_trajectory_action_controller.h.
std::vector<double> katana::JointTrajectoryActionController::goal_constraints_ [private] |
Definition at line 77 of file joint_trajectory_action_controller.h.
std::vector<std::string> katana::JointTrajectoryActionController::joints_ [private] |
Definition at line 71 of file joint_trajectory_action_controller.h.
boost::shared_ptr<AbstractKatana> katana::JointTrajectoryActionController::katana_ [private] |
Definition at line 72 of file joint_trajectory_action_controller.h.
Definition at line 86 of file joint_trajectory_action_controller.h.
double katana::JointTrajectoryActionController::stopped_velocity_tolerance_ [private] |
Definition at line 76 of file joint_trajectory_action_controller.h.
Definition at line 81 of file joint_trajectory_action_controller.h.