Public Member Functions | Private Member Functions | Private Attributes
jaco::JacoArm Class Reference

#include <jaco_arm.h>

List of all members.

Public Member Functions

void cartesianVelocityCallback (const geometry_msgs::TwistStampedConstPtr &cartesian_vel)
bool homeArmServiceCallback (jaco_msgs::HomeArm::Request &req, jaco_msgs::HomeArm::Response &res)
 JacoArm (JacoComm &arm, const ros::NodeHandle &node_handle)
void jointVelocityCallback (const jaco_msgs::JointVelocityConstPtr &joint_vel)
bool startServiceCallback (jaco_msgs::Start::Request &req, jaco_msgs::Start::Response &res)
 Handler for "start" service.
bool stopServiceCallback (jaco_msgs::Stop::Request &req, jaco_msgs::Stop::Response &res)
 Handler for "stop" service.
 ~JacoArm ()

Private Member Functions

void cartesianVelocityTimer (const ros::TimerEvent &)
void jointVelocityTimer (const ros::TimerEvent &)
void positionTimer (const ros::TimerEvent &)
void publishFingerPosition (void)
 Publishes the current finger positions.
void publishJointAngles (void)
 Publishes the current joint angles.
void publishToolPosition (void)
 Publishes the current cartesian coordinates.
void statusTimer (const ros::TimerEvent &)

Private Attributes

double cartesian_vel_interval_seconds_
double cartesian_vel_timeout_seconds_
ros::Timer cartesian_vel_timer_
bool cartesian_vel_timer_flag_
CartesianInfo cartesian_velocities_
ros::Subscriber cartesian_velocity_subscriber_
ros::Publisher finger_position_publisher_
ros::ServiceServer homing_service_
JacoCommjaco_comm_
ros::Publisher joint_angles_publisher_
ros::Publisher joint_state_publisher_
double joint_vel_interval_seconds_
double joint_vel_timeout_seconds_
ros::Timer joint_vel_timer_
bool joint_vel_timer_flag_
AngularInfo joint_velocities_
ros::Subscriber joint_velocity_subscriber_
ros::Time last_cartesian_vel_cmd_time_
ros::Time last_joint_vel_cmd_time_
ros::NodeHandle node_handle_
ros::ServiceServer start_service_
double status_interval_seconds_
ros::Timer status_timer_
ros::ServiceServer stop_service_
tf::TransformListener tf_listener_
ros::Publisher tool_position_publisher_

Detailed Description

Definition at line 40 of file jaco_arm.h.


Constructor & Destructor Documentation

jaco::JacoArm::JacoArm ( JacoComm arm,
const ros::NodeHandle node_handle 
)

Definition at line 19 of file jaco_arm.cpp.

Definition at line 62 of file jaco_arm.cpp.


Member Function Documentation

void jaco::JacoArm::cartesianVelocityCallback ( const geometry_msgs::TwistStampedConstPtr &  cartesian_vel)

Definition at line 126 of file jaco_arm.cpp.

Definition at line 148 of file jaco_arm.cpp.

bool jaco::JacoArm::homeArmServiceCallback ( jaco_msgs::HomeArm::Request &  req,
jaco_msgs::HomeArm::Response &  res 
)

Definition at line 67 of file jaco_arm.cpp.

void jaco::JacoArm::jointVelocityCallback ( const jaco_msgs::JointVelocityConstPtr &  joint_vel)

Definition at line 76 of file jaco_arm.cpp.

void jaco::JacoArm::jointVelocityTimer ( const ros::TimerEvent ) [private]

Definition at line 168 of file jaco_arm.cpp.

void jaco::JacoArm::positionTimer ( const ros::TimerEvent ) [private]
void jaco::JacoArm::publishFingerPosition ( void  ) [private]

Publishes the current finger positions.

Definition at line 265 of file jaco_arm.cpp.

void jaco::JacoArm::publishJointAngles ( void  ) [private]

Publishes the current joint angles.

Joint angles are published in both their raw state as obtained from the arm (JointAngles), and transformed & converted to radians (joint_state) as per the Jaco Kinematics PDF.

JointState will eventually also publish the velocity and effort for each joint, when this data is made available by the C++ API. Currenty velocity and effort are reported as being zero (0.0) for all joints.

Definition at line 199 of file jaco_arm.cpp.

void jaco::JacoArm::publishToolPosition ( void  ) [private]

Publishes the current cartesian coordinates.

Definition at line 250 of file jaco_arm.cpp.

bool jaco::JacoArm::startServiceCallback ( jaco_msgs::Start::Request &  req,
jaco_msgs::Start::Response &  res 
)

Handler for "start" service.

Re-enables control of the arm after a stop.

Definition at line 117 of file jaco_arm.cpp.

void jaco::JacoArm::statusTimer ( const ros::TimerEvent ) [private]

Definition at line 273 of file jaco_arm.cpp.

bool jaco::JacoArm::stopServiceCallback ( jaco_msgs::Stop::Request &  req,
jaco_msgs::Stop::Response &  res 
)

Handler for "stop" service.

Instantly stops the arm and prevents further movement until start service is invoked.

Definition at line 103 of file jaco_arm.cpp.


Member Data Documentation

Definition at line 90 of file jaco_arm.h.

Definition at line 88 of file jaco_arm.h.

Definition at line 82 of file jaco_arm.h.

Definition at line 93 of file jaco_arm.h.

Definition at line 97 of file jaco_arm.h.

Definition at line 69 of file jaco_arm.h.

Definition at line 73 of file jaco_arm.h.

Definition at line 78 of file jaco_arm.h.

Definition at line 65 of file jaco_arm.h.

Definition at line 71 of file jaco_arm.h.

Definition at line 74 of file jaco_arm.h.

Definition at line 89 of file jaco_arm.h.

Definition at line 87 of file jaco_arm.h.

Definition at line 83 of file jaco_arm.h.

Definition at line 94 of file jaco_arm.h.

Definition at line 96 of file jaco_arm.h.

Definition at line 68 of file jaco_arm.h.

Definition at line 100 of file jaco_arm.h.

Definition at line 99 of file jaco_arm.h.

Definition at line 64 of file jaco_arm.h.

Definition at line 77 of file jaco_arm.h.

Definition at line 86 of file jaco_arm.h.

Definition at line 81 of file jaco_arm.h.

Definition at line 76 of file jaco_arm.h.

Definition at line 63 of file jaco_arm.h.

Definition at line 72 of file jaco_arm.h.


The documentation for this class was generated from the following files:


jaco_driver
Author(s): Ilia Baranov (Clearpath) , Jeff Schmidt (Clearpath) , Alex Bencz (Clearpath) , Matt DeDonato (WPI), Braden Stenning
autogenerated on Mon Mar 2 2015 16:21:03