#include <state_machine.h>
Definition at line 182 of file state_machine.h.
Default constructor (must call init function)
Definition at line 69 of file state_machine.cpp.
Deconstructor.
Definition at line 82 of file state_machine.cpp.
void StateMachine::abortActionServers | ( | ) | [protected] |
Aborts any server with active client requests.
Definition at line 586 of file state_machine.cpp.
bool StateMachine::areActionsReady | ( | ) | [protected] |
Checks remote action servers to see if they are ready.
Definition at line 572 of file state_machine.cpp.
bool StateMachine::areServicesReady | ( | ) | [protected] |
Checks remote services to see if they are ready.
Definition at line 580 of file state_machine.cpp.
void StateMachine::callPublishers | ( | ) | [protected] |
Definition at line 745 of file state_machine.cpp.
void StateMachine::cancelActionClients | ( | ) | [protected] |
Cancels any requests to action servers.
Definition at line 607 of file state_machine.cpp.
void StateMachine::closeChuck | ( | ) | [protected] |
Definition at line 1033 of file state_machine.cpp.
void StateMachine::closeDoor | ( | ) | [protected] |
Definition at line 1001 of file state_machine.cpp.
void StateMachine::closeGripper | ( | ) | [protected] |
Definition at line 1066 of file state_machine.cpp.
void StateMachine::errorChecks | ( | ) | [protected] |
Definition at line 688 of file state_machine.cpp.
bool StateMachine::externalCommandCB | ( | mtconnect_example_msgs::StateMachineCmd::Request & | req, |
mtconnect_example_msgs::StateMachineCmd::Response & | res | ||
) | [protected] |
Definition at line 853 of file state_machine.cpp.
StateType mtconnect_state_machine::StateMachine::getState | ( | ) | [inline, protected] |
Definition at line 233 of file state_machine.h.
Initializes statemachine, ros node, servers, and clients.
Definition at line 87 of file state_machine.cpp.
bool StateMachine::isActionComplete | ( | int | action_state | ) | [protected] |
Definition at line 909 of file state_machine.cpp.
bool StateMachine::isChuckClosed | ( | ) | [protected] |
Definition at line 1047 of file state_machine.cpp.
bool StateMachine::isChuckOpened | ( | ) | [protected] |
Definition at line 1028 of file state_machine.cpp.
bool StateMachine::isDoorClosed | ( | ) | [protected] |
Definition at line 1009 of file state_machine.cpp.
bool StateMachine::isDoorOpened | ( | ) | [protected] |
Definition at line 996 of file state_machine.cpp.
bool StateMachine::isGripperClosed | ( | ) | [protected] |
Definition at line 1074 of file state_machine.cpp.
bool StateMachine::isGripperOpened | ( | ) | [protected] |
Definition at line 1061 of file state_machine.cpp.
bool StateMachine::isHome | ( | ) | [protected] |
Definition at line 1079 of file state_machine.cpp.
bool StateMachine::isMoveDone | ( | ) | [protected] |
Definition at line 983 of file state_machine.cpp.
void StateMachine::jointStatesCB | ( | const sensor_msgs::JointStateConstPtr & | msg | ) | [protected] |
Definition at line 848 of file state_machine.cpp.
void StateMachine::materialLoadGoalCB | ( | ) | [protected] |
Definition at line 805 of file state_machine.cpp.
void StateMachine::materialUnloadGoalCB | ( | ) | [protected] |
Definition at line 824 of file state_machine.cpp.
bool StateMachine::moveArm | ( | const std::string & | move_name | ) | [protected] |
Definition at line 944 of file state_machine.cpp.
void StateMachine::openChuck | ( | ) | [protected] |
Definition at line 1014 of file state_machine.cpp.
void StateMachine::openDoor | ( | ) | [protected] |
Definition at line 988 of file state_machine.cpp.
void StateMachine::openGripper | ( | ) | [protected] |
Definition at line 1053 of file state_machine.cpp.
void StateMachine::overrideChecks | ( | ) | [protected] |
Definition at line 711 of file state_machine.cpp.
void StateMachine::robotSpindlePublisher | ( | ) | [protected] |
Definition at line 781 of file state_machine.cpp.
void StateMachine::robotStatusCB | ( | const industrial_msgs::RobotStatusConstPtr & | msg | ) | [protected] |
Definition at line 843 of file state_machine.cpp.
void StateMachine::robotStatusPublisher | ( | ) | [protected] |
Definition at line 751 of file state_machine.cpp.
void StateMachine::run | ( | void | ) |
Execute state machine (blocks permanently)
Executes the state machine. Handles all transitions
Definition at line 182 of file state_machine.cpp.
void StateMachine::runOnce | ( | ) |
Execute state machine once.
Definition at line 200 of file state_machine.cpp.
bool StateMachine::setMatActionsNotReady | ( | ) | [protected] |
Checks remote services to see if they are ready.
Definition at line 627 of file state_machine.cpp.
bool StateMachine::setMatActionsReady | ( | ) | [protected] |
Checks remote services to see if they are ready.
Definition at line 621 of file state_machine.cpp.
bool StateMachine::setMatLoad | ( | int | state | ) | [protected] |
Checks remote services to see if they are ready.
Definition at line 633 of file state_machine.cpp.
bool StateMachine::setMatUnload | ( | int | state | ) | [protected] |
Definition at line 661 of file state_machine.cpp.
void mtconnect_state_machine::StateMachine::setState | ( | StateType | state | ) | [inline, protected] |
Definition at line 225 of file state_machine.h.
void StateMachine::stateMachineStatusPublisher | ( | ) | [protected] |
Definition at line 794 of file state_machine.cpp.
Definition at line 399 of file state_machine.h.
Definition at line 397 of file state_machine.h.
cycle stop request flat
Definition at line 373 of file state_machine.h.
Definition at line 414 of file state_machine.h.
Definition at line 400 of file state_machine.h.
boost::shared_ptr<mtconnect::JointPoint> mtconnect_state_machine::StateMachine::home_ [private] |
Definition at line 389 of file state_machine.h.
enables/disables home checking
Definition at line 362 of file state_machine.h.
double mtconnect_state_machine::StateMachine::home_tol_ [private] |
home position tolerance
Definition at line 368 of file state_machine.h.
std::map<std::string, trajectory_msgs::JointTrajectoryPtr> mtconnect_state_machine::StateMachine::joint_paths_ [private] |
Definition at line 388 of file state_machine.h.
sensor_msgs::JointState mtconnect_state_machine::StateMachine::joint_state_msg_ [private] |
Definition at line 427 of file state_machine.h.
Definition at line 411 of file state_machine.h.
Definition at line 402 of file state_machine.h.
control_msgs::FollowJointTrajectoryGoal mtconnect_state_machine::StateMachine::joint_traj_goal_ [private] |
Definition at line 437 of file state_machine.h.
int mtconnect_state_machine::StateMachine::loop_rate_ [private] |
Main loop rate.
Definition at line 356 of file state_machine.h.
mtconnect_msgs::SetMTConnectState mtconnect_state_machine::StateMachine::mat_load_set_state_ [private] |
Definition at line 432 of file state_machine.h.
mtconnect_msgs::SetMTConnectState mtconnect_state_machine::StateMachine::mat_unload_set_state_ [private] |
Definition at line 433 of file state_machine.h.
Definition at line 392 of file state_machine.h.
Definition at line 417 of file state_machine.h.
internal flag to track material load state (should be encapsulated in material load)
Definition at line 385 of file state_machine.h.
material state (true if material is present)
Definition at line 379 of file state_machine.h.
MaterialUnloadServerPtr mtconnect_state_machine::StateMachine::material_unload_server_ptr_ [private] |
Definition at line 393 of file state_machine.h.
ros::ServiceClient mtconnect_state_machine::StateMachine::material_unload_set_state_client_ [private] |
Definition at line 418 of file state_machine.h.
Internal node handle.
Definition at line 237 of file state_machine.h.
Definition at line 398 of file state_machine.h.
Definition at line 396 of file state_machine.h.
mtconnect_msgs::RobotSpindle mtconnect_state_machine::StateMachine::robot_spindle_msg_ [private] |
Definition at line 423 of file state_machine.h.
Definition at line 406 of file state_machine.h.
mtconnect_msgs::RobotStates mtconnect_state_machine::StateMachine::robot_state_msg_ [private] |
Definition at line 422 of file state_machine.h.
Definition at line 405 of file state_machine.h.
industrial_msgs::RobotStatus mtconnect_state_machine::StateMachine::robot_status_msg_ [private] |
Definition at line 428 of file state_machine.h.
Definition at line 410 of file state_machine.h.
Holds current state.
Definition at line 350 of file state_machine.h.
Definition at line 407 of file state_machine.h.
mtconnect_example_msgs::StateMachineStatus mtconnect_state_machine::StateMachine::state_machine_stat_msg_ [private] |
Definition at line 424 of file state_machine.h.
arm_navigation_msgs::FilterJointTrajectoryWithConstraints mtconnect_state_machine::StateMachine::trajectory_filter_ [private] |
Definition at line 434 of file state_machine.h.
Definition at line 419 of file state_machine.h.
Definition at line 401 of file state_machine.h.