#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/JointCommandGripper.h"
#include <ros/package.h>
Go to the source code of this file.
Classes | |
class | JointCommandGripperTest |
Functions | |
float | getBrainstemCoeff (std::string item) |
std::string | getCommandFile (std::string mechanism) |
float | getFloat (std::string item) |
float | getMotorCoeff (std::string item) |
bool | hasBrainstemCoeff (std::string item) |
int | main (int argc, char **argv) |
void | setFloat (std::string item, float value) |
TEST_F (JointCommandGripperTest, Constructor) | |
TEST_F (JointCommandGripperTest, LoadCoeffs) | |
TEST_F (JointCommandGripperTest, getSimpleMeasuredState) | |
TEST_F (JointCommandGripperTest, getCommandedState) | |
TEST_F (JointCommandGripperTest, setCommand) | |
TEST_F (JointCommandGripperTest, setCommand_BadMsg) | |
TEST_F (JointCommandGripperTest, getCapability) | |
Variables | |
CoeffMapPtr | brainstemCoeffMap |
RobotInstancePtr | instance |
CoeffMapPtr | motorCoeffMap |
std::map< std::string, float > | testFloats |
float getBrainstemCoeff | ( | std::string | item | ) |
Definition at line 41 of file JointCommandGripper_Test.cpp.
std::string getCommandFile | ( | std::string | mechanism | ) |
Definition at line 46 of file JointCommandGripper_Test.cpp.
float getFloat | ( | std::string | item | ) |
Definition at line 16 of file JointCommandGripper_Test.cpp.
float getMotorCoeff | ( | std::string | item | ) |
Definition at line 26 of file JointCommandGripper_Test.cpp.
bool hasBrainstemCoeff | ( | std::string | item | ) |
Definition at line 31 of file JointCommandGripper_Test.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 333 of file JointCommandGripper_Test.cpp.
void setFloat | ( | std::string | item, |
float | value | ||
) |
Definition at line 21 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
Constructor | |||
) |
Missing IO function definitions
Definition at line 86 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
LoadCoeffs | |||
) |
Definition at line 95 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
getSimpleMeasuredState | |||
) |
Definition at line 139 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
getCommandedState | |||
) |
Definition at line 177 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
setCommand | |||
) |
Definition at line 205 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
setCommand_BadMsg | |||
) |
empty command message
wrong joint name
too many desiredPosition values
Definition at line 271 of file JointCommandGripper_Test.cpp.
TEST_F | ( | JointCommandGripperTest | , |
getCapability | |||
) |
Definition at line 316 of file JointCommandGripper_Test.cpp.
CoeffMapPtr brainstemCoeffMap |
Definition at line 13 of file JointCommandGripper_Test.cpp.
RobotInstancePtr instance |
Definition at line 14 of file JointCommandGripper_Test.cpp.
CoeffMapPtr motorCoeffMap |
Definition at line 12 of file JointCommandGripper_Test.cpp.
std::map<std::string, float> testFloats |
Definition at line 11 of file JointCommandGripper_Test.cpp.