Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
motoman::joint_motion_handler::JointMotionHandler Class Reference

Message handler that handles joint motion requests to the controller. More...

#include <joint_motion_handler.h>

Inheritance diagram for motoman::joint_motion_handler::JointMotionHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool init (industrial::smpl_msg_connection::SmplMsgConnection *connection)
 Class initializer.
bool init (industrial::smpl_msg_connection::SmplMsgConnection *connection)
 Class initializer.
bool init (int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection)
 Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/.
bool init (int msg_type, industrial::smpl_msg_connection::SmplMsgConnection *connection)
 Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/.
 JointMotionHandler (void)
 JointMotionHandler (void)
 ~JointMotionHandler (void)
 ~JointMotionHandler (void)

Private Member Functions

void disableMotion (void)
 Disables motion on the robot controller. Turns off servo power, turns on hold status.
void disableMotion (void)
 Disables motion on the robot controller. Turns off servo power, turns on hold status.
void enableMotion (void)
 Enables motion on the robot controller. Turns on servo power, turns off hold status.
void enableMotion (void)
 Enables motion on the robot controller. Turns on servo power, turns off hold status.
bool internalCB (industrial::simple_message::SimpleMessage &in)
 Callback executed upon receiving a joint message.
bool internalCB (industrial::simple_message::SimpleMessage &in)
 Callback executed upon receiving a joint message.
bool isJobStarted (void)
 return true if jos has been started (Based on internal class state not MotoPlus call)
bool isJobStarted (void)
 return true if jos has been started (Based on internal class state not MotoPlus call)
bool isMotionEnabled (void)
 return true if motion is enabled (Based on internal class state not MotoPlus call)
bool isMotionEnabled (void)
 return true if motion is enabled (Based on internal class state not MotoPlus call)
void motionInterface (industrial::joint_message::JointMessage &jMsg)
 Handles motion interface based on type of joint message passed.
void motionInterface (industrial::joint_message::JointMessage &jMsg)
 Handles motion interface based on type of joint message passed.
void startMotionJob (void)
 Starts motion job on the controller. Enables motion (Job cannot be started if motion is not enabled).
void startMotionJob (void)
 Starts motion job on the controller. Enables motion (Job cannot be started if motion is not enabled).
void stopMotionJob (void)
 Stops motion job on the controller. Disables motion.
void stopMotionJob (void)
 Stops motion job on the controller. Disables motion.

Private Attributes

MP_HOLD_SEND_DATA hold_data
MP_STD_RSP_DATA hold_error
MP_STD_RSP_DATA job_error
MP_CUR_JOB_SEND_DATA job_reset_data
MP_STD_RSP_DATA job_reset_error
MP_START_JOB_SEND_DATA job_start_data
bool jobStarted
 True if job started.
bool motionEnabled
 True if motion enabled.
motoman::p_var_q::PVarQ pVarQ
MP_SERVO_POWER_SEND_DATA servo_power_data
MP_STD_RSP_DATA servo_power_error

Static Private Attributes

static const int BUFFER_POLL_TICK_DELAY = 1000
 Poll delay (in ticks) when querying the motion buffer.
static const int MP_POLL_TICK_DELAY = 10
 Poll delay (in ticks) when querying the motoplus api.

Detailed Description

Message handler that handles joint motion requests to the controller.

THIS CLASS IS NOT THREAD-SAFE

Definition at line 80 of file joint_motion_handler.h.


Constructor & Destructor Documentation

Definition at line 49 of file joint_motion_handler.cpp.

Definition at line 63 of file joint_motion_handler.cpp.


Member Function Documentation

Disables motion on the robot controller. Turns off servo power, turns on hold status.

Definition at line 185 of file joint_motion_handler.cpp.

Disables motion on the robot controller. Turns off servo power, turns on hold status.

Enables motion on the robot controller. Turns on servo power, turns off hold status.

Definition at line 161 of file joint_motion_handler.cpp.

Enables motion on the robot controller. Turns on servo power, turns off hold status.

Class initializer.

Parameters:
connectionsimple message connection that will be used to send replies.
Returns:
true on success, false otherwise (an invalid message type)

Class initializer.

Parameters:
connectionsimple message connection that will be used to send replies.
Returns:
true on success, false otherwise (an invalid message type)

Definition at line 69 of file joint_motion_handler.cpp.

Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/.

Parameters:
connectionsimple message connection that will be used to send replies.
Returns:
true on success, false otherwise (an invalid message type)

Reimplemented from industrial::message_handler::MessageHandler.

Definition at line 105 of file joint_motion_handler.h.

Class initializer (Direct call to base class with the same name) I couldn't get the "using" form to work/.

Parameters:
connectionsimple message connection that will be used to send replies.
Returns:
true on success, false otherwise (an invalid message type)

Reimplemented from industrial::message_handler::MessageHandler.

Definition at line 105 of file output/joint_motion_handler.h.

Callback executed upon receiving a joint message.

Parameters:
inincoming message
Returns:
true on success, false otherwise

Implements industrial::message_handler::MessageHandler.

Definition at line 74 of file joint_motion_handler.cpp.

Callback executed upon receiving a joint message.

Parameters:
inincoming message
Returns:
true on success, false otherwise

Implements industrial::message_handler::MessageHandler.

return true if jos has been started (Based on internal class state not MotoPlus call)

Returns:
true if job has been stared

Definition at line 166 of file joint_motion_handler.h.

return true if jos has been started (Based on internal class state not MotoPlus call)

Returns:
true if job has been stared

Definition at line 166 of file output/joint_motion_handler.h.

return true if motion is enabled (Based on internal class state not MotoPlus call)

Returns:
true if motion enabled

Definition at line 158 of file output/joint_motion_handler.h.

return true if motion is enabled (Based on internal class state not MotoPlus call)

Returns:
true if motion enabled

Definition at line 158 of file joint_motion_handler.h.

Handles motion interface based on type of joint message passed.

Parameters:
inincoming joint message

Handles motion interface based on type of joint message passed.

Parameters:
inincoming joint message

Definition at line 115 of file joint_motion_handler.cpp.

Starts motion job on the controller. Enables motion (Job cannot be started if motion is not enabled).

Definition at line 198 of file joint_motion_handler.cpp.

Starts motion job on the controller. Enables motion (Job cannot be started if motion is not enabled).

Stops motion job on the controller. Disables motion.

Definition at line 225 of file joint_motion_handler.cpp.

Stops motion job on the controller. Disables motion.


Member Data Documentation

Poll delay (in ticks) when querying the motion buffer.

Definition at line 137 of file joint_motion_handler.h.

Definition at line 124 of file joint_motion_handler.h.

Definition at line 125 of file joint_motion_handler.h.

Definition at line 120 of file joint_motion_handler.h.

Definition at line 118 of file joint_motion_handler.h.

Definition at line 119 of file joint_motion_handler.h.

Definition at line 117 of file joint_motion_handler.h.

True if job started.

Definition at line 150 of file joint_motion_handler.h.

True if motion enabled.

Definition at line 145 of file joint_motion_handler.h.

Poll delay (in ticks) when querying the motoplus api.

Definition at line 132 of file joint_motion_handler.h.

Definition at line 127 of file joint_motion_handler.h.

Definition at line 106 of file joint_motion_handler.h.

Definition at line 114 of file joint_motion_handler.h.


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


dx100
Author(s): Shaun Edwards (Southwest Research Institute)
autogenerated on Thu Jan 2 2014 11:29:36