#include <gtest/gtest.h>#include <boost/shared_ptr.hpp>#include <boost/make_shared.hpp>#include "robodyn_mechanisms/GripperPositionStateMachine.h"
Go to the source code of this file.
| float getFloat | ( | const std::string & | name | ) |
Definition at line 26 of file GripperPositionStateMachine_Test.cpp.
| uint16_t getUInt16 | ( | const std::string & | name | ) |
Definition at line 14 of file GripperPositionStateMachine_Test.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 745 of file GripperPositionStateMachine_Test.cpp.
| void sendCommand | ( | const r2_msgs::JointCommand & | msg | ) |
Definition at line 36 of file GripperPositionStateMachine_Test.cpp.
| void setFloat | ( | const std::string & | name, |
| float | value | ||
| ) |
Definition at line 31 of file GripperPositionStateMachine_Test.cpp.
| void setUInt16 | ( | const std::string & | name, |
| uint16_t | value | ||
| ) |
Definition at line 19 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| InitialStates | |||
| ) |
Definition at line 90 of file GripperPositionStateMachine_Test.cpp.
event driven
data driven
Definition at line 136 of file GripperPositionStateMachine_Test.cpp.
event driven
data driven
Definition at line 158 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| DesiredJawPosition | |||
| ) |
event driven
data driven
can't be stalled if current limit isn't reached
Definition at line 232 of file GripperPositionStateMachine_Test.cpp.
event driven
Definition at line 253 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| Force | |||
| ) |
| TEST_F | ( | GripperPositionStateMachineTest | , |
| SetParameters | |||
| ) |
Parameters can only be changed when Inactive or Listening
Definition at line 331 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| Command | |||
| ) |
event driven
can't be active if faulted
data driven
Definition at line 378 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| Movement | |||
| ) |
event driven
data driven
Definition at line 416 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionSet | |||
| ) |
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionLock | |||
| ) |
event driven
Done should never last, it auto-transitions to Listening.
already at desired jaw position
already at desired jaw position and locked
data driven
Definition at line 556 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionRelease | |||
| ) |
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionInterrupt | |||
| ) |
Definition at line 644 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionOpenWideFailure | |||
| ) |
event driven
Definition at line 656 of file GripperPositionStateMachine_Test.cpp.
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionJawPositionCheckFailure | |||
| ) |
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionCloseFailure | |||
| ) |
| TEST_F | ( | GripperPositionStateMachineTest | , |
| ActionLockCheckFailure | |||
| ) |
| std::map<std::string, float> testFloats |
Definition at line 24 of file GripperPositionStateMachine_Test.cpp.
| std::map<std::string, uint16_t> testUInt16s |
Definition at line 12 of file GripperPositionStateMachine_Test.cpp.