Classes | Functions | Variables
test_constrained_ik.cpp File Reference

Test Fixtures. More...

#include <gtest/gtest.h>
#include <ros/ros.h>
#include "constrained_ik/constrained_ik.h"
#include "constrained_ik/constraints/goal_pose.h"
#include "constrained_ik/constraints/goal_position.h"
#include "constrained_ik/constraints/goal_orientation.h"
#include "constrained_ik/constraints/avoid_obstacles.h"
#include "constrained_ik/constrained_ik_utils.h"
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/robot_model/joint_model_group.h>
#include <moveit/collision_plugin_loader/collision_plugin_loader.h>
#include <boost/random/uniform_int_distribution.hpp>
Include dependency graph for test_constrained_ik.cpp:

Go to the source code of this file.

Classes

class  BasicIKTest
 Constrained_IK Test Fixtures Consolidate variable-definitions and init functions for use by multiple tests. More...

Functions

int main (int argc, char **argv)
 This executes all tests for the Constraine_IK Class and its constraints.
 TEST (constrained_ik, nullspaceprojection)
 This test the Constrained_IK null space project calculation.
 TEST_F (BasicIKTest, inputValidation)
 This tests the Constrained_IK init functions.
 TEST_F (BasicIKTest, calcInvKinInputValidation)
 This performs input validation test for the Constrained_IK calcInvKin function.
 TEST_F (BasicIKTest, knownPoses)
 This tests the Constrained_IK calcInvKin function against known poses using only primary constraint.
 TEST_F (BasicIKTest, NullMotion)
 This tests the Constrained_IK calcInvKin function null space motion.
 TEST_F (BasicIKTest, NullMotionPose)
 This tests the Constrained_IK calcInvKin function null space motion convergence for known poses.
 TEST_F (BasicIKTest, obstacleAvoidanceAuxiliaryConstraint)
 This test the AvoidObstacles constraint The solver is setup with a primary GoalPosition constraint and a axuiliary AvoidObstacles constraint. I then seeds the solver with it current pose with a goal position as the current position and the axuiliary constraint should move the robot in joint space away from its current joint positions while maintaining the starting position of the tcp.
 TEST_F (BasicIKTest, consistancy)
 This test checks the consistancy of the axisAngle calculations from a quaternion value Namely does it always return an angle in +/-pi range? (The answer should be yes)

Variables

const std::string GROUP_NAME = "manipulator"
const std::string ROBOT_DESCRIPTION_PARAM = "robot_description"

Detailed Description

Test Fixtures.

Consolidate variable-definitions and init functions for use by multiple tests.

Author:
dsolomon
Date:
Sep 23, 2013
Version:
TODO
Bug:
No known bugs
License
Software License Agreement (Apache License)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file test_constrained_ik.cpp.


Variable Documentation

const std::string GROUP_NAME = "manipulator"

Default group name for tests

Definition at line 49 of file test_constrained_ik.cpp.

const std::string ROBOT_DESCRIPTION_PARAM = "robot_description"

Default ROS parameter for robot description

Definition at line 50 of file test_constrained_ik.cpp.



constrained_ik
Author(s): Chris Lewis , Jeremy Zoss , Dan Solomon
autogenerated on Sat Jun 8 2019 19:23:45