#include <gtest/gtest.h>#include <boost/shared_ptr.hpp>#include <boost/make_shared.hpp>#include "robot_instance/RobotInstanceFactory.h"#include "robot_instance/CoeffMapLoader.h"#include "robodyn_mechanisms/JointCommandRigid.h"#include <ros/package.h>
Go to the source code of this file.
Classes | |
| class | JointCommandRigidTest |
Functions | |
| float | getBrainstemCoeff (std::string item) |
| std::string | getCommandFile (std::string mechanism) |
| float | getFloat (std::string item) |
| float | getMotorCoeff (std::string item) |
| float | getUInt16 (std::string item) |
| uint32_t | getUInt32 (std::string item) |
| bool | hasBrainstemCoeff (std::string item) |
| int | main (int argc, char **argv) |
| void | setFloat (std::string item, float value) |
| void | setUInt16 (std::string item, uint16_t value) |
| void | setUInt32 (std::string item, uint32_t value) |
| TEST_F (JointCommandRigidTest, Constructor) | |
| TEST_F (JointCommandRigidTest, LoadCoeffs) | |
| TEST_F (JointCommandRigidTest, getSimpleMeasuredState) | |
| TEST_F (JointCommandRigidTest, getCommandedState) | |
| TEST_F (JointCommandRigidTest, setCommand) | |
| TEST_F (JointCommandRigidTest, setCommand_BadMsg) | |
| TEST_F (JointCommandRigidTest, getCapability) | |
Variables | |
| CoeffMapPtr | brainstemCoeffMap |
| RobotInstancePtr | instance |
| CoeffMapPtr | motorCoeffMap |
| std::map< std::string, float > | testFloats |
| std::map< std::string, uint16_t > | testUInt16s |
| std::map< std::string, uint32_t > | testUInt32s |
| float getBrainstemCoeff | ( | std::string | item | ) |
Definition at line 63 of file JointCommandRigid_Test.cpp.
| std::string getCommandFile | ( | std::string | mechanism | ) |
Definition at line 68 of file JointCommandRigid_Test.cpp.
| float getFloat | ( | std::string | item | ) |
Definition at line 18 of file JointCommandRigid_Test.cpp.
| float getMotorCoeff | ( | std::string | item | ) |
Definition at line 48 of file JointCommandRigid_Test.cpp.
| float getUInt16 | ( | std::string | item | ) |
Definition at line 28 of file JointCommandRigid_Test.cpp.
| uint32_t getUInt32 | ( | std::string | item | ) |
Definition at line 38 of file JointCommandRigid_Test.cpp.
| bool hasBrainstemCoeff | ( | std::string | item | ) |
Definition at line 53 of file JointCommandRigid_Test.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 340 of file JointCommandRigid_Test.cpp.
| void setFloat | ( | std::string | item, |
| float | value | ||
| ) |
Definition at line 23 of file JointCommandRigid_Test.cpp.
| void setUInt16 | ( | std::string | item, |
| uint16_t | value | ||
| ) |
Definition at line 33 of file JointCommandRigid_Test.cpp.
| void setUInt32 | ( | std::string | item, |
| uint32_t | value | ||
| ) |
Definition at line 43 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| Constructor | |||
| ) |
Missing IO function definitions
Definition at line 111 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| LoadCoeffs | |||
| ) |
Definition at line 120 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| getSimpleMeasuredState | |||
| ) |
Definition at line 164 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| getCommandedState | |||
| ) |
Definition at line 189 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| setCommand | |||
| ) |
Definition at line 221 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| setCommand_BadMsg | |||
| ) |
empty command message
wrong joint name
too many desiredPosition values
Definition at line 278 of file JointCommandRigid_Test.cpp.
| TEST_F | ( | JointCommandRigidTest | , |
| getCapability | |||
| ) |
Definition at line 323 of file JointCommandRigid_Test.cpp.
| CoeffMapPtr brainstemCoeffMap |
Definition at line 15 of file JointCommandRigid_Test.cpp.
| RobotInstancePtr instance |
Definition at line 16 of file JointCommandRigid_Test.cpp.
| CoeffMapPtr motorCoeffMap |
Definition at line 14 of file JointCommandRigid_Test.cpp.
| std::map<std::string, float> testFloats |
Definition at line 11 of file JointCommandRigid_Test.cpp.
| std::map<std::string, uint16_t> testUInt16s |
Definition at line 13 of file JointCommandRigid_Test.cpp.
| std::map<std::string, uint32_t> testUInt32s |
Definition at line 12 of file JointCommandRigid_Test.cpp.