This is a set of unit tests testing the robot libraries. More...
#include "sr_robot_lib/sr_motor_hand_lib.hpp"
#include <sr_mechanism_model/simple_transmission.hpp>
#include <gtest/gtest.h>
#include <ros/ros.h>
#include <utility>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | HandLibTest |
class | HandLibTestProtected |
class | TestHandLib |
Defines | |
#define | COMMAND_TYPE ETHERCAT_DATA_STRUCTURE_0230_PALM_EDC_COMMAND |
#define | error_flag_names palm_0200_edc_error_flag_names |
#define | STATUS_TYPE ETHERCAT_DATA_STRUCTURE_0230_PALM_EDC_STATUS |
Functions | |
int | main (int argc, char **argv) |
TEST (SrRobotLib, Initialization) | |
TEST (SrRobotLib, UpdateMotor) | |
TEST (SrRobotLib, UpdateActuators) | |
TEST (SrRobotLib, HumanizeFlags) |
This is a set of unit tests testing the robot libraries.
Copyright 2011 Shadow Robot Company Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Definition in file test_robot_lib.cpp.
#define COMMAND_TYPE ETHERCAT_DATA_STRUCTURE_0230_PALM_EDC_COMMAND |
Definition at line 37 of file test_robot_lib.cpp.
Definition at line 35 of file test_robot_lib.cpp.
#define STATUS_TYPE ETHERCAT_DATA_STRUCTURE_0230_PALM_EDC_STATUS |
Definition at line 36 of file test_robot_lib.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 464 of file test_robot_lib.cpp.
TEST | ( | SrRobotLib | , |
Initialization | |||
) |
Tests the initialization of the hand library.
Definition at line 103 of file test_robot_lib.cpp.
TEST | ( | SrRobotLib | , |
UpdateMotor | |||
) |
Tests the update of the hand library.
Definition at line 119 of file test_robot_lib.cpp.
TEST | ( | SrRobotLib | , |
UpdateActuators | |||
) |
Tests the update of the actuators which are in the hw*
Definition at line 186 of file test_robot_lib.cpp.
TEST | ( | SrRobotLib | , |
HumanizeFlags | |||
) |
Testing the calibration procedure for a joint having one motor only (FFJ3) Testing the calibration procedure for a joint having calibrating the sensors first and then combining them (FFJ0) Testing the calibration procedure for a compound joint combining the sensors and then calibrating the total (THJ5) Testing the humanization of the flags.
Definition at line 439 of file test_robot_lib.cpp.