moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
#include <boost/core/demangle.hpp>
#include <gtest/gtest.h>
#include <moveit/planning_interface/planning_interface.h>
#include <moveit/planning_scene/planning_scene.h>
#include <moveit/robot_model/robot_model.h>
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/robot_state/conversions.h>
#include <moveit/robot_state/robot_state.h>
#include <pilz_industrial_motion_planner/joint_limits_aggregator.h>
#include <pilz_industrial_motion_planner/joint_limits_container.h>
#include <pilz_industrial_motion_planner/trajectory_generator_circ.h>
#include <pilz_industrial_motion_planner/trajectory_generator_lin.h>
#include <pilz_industrial_motion_planner/trajectory_generator_ptp.h>
#include <pilz_industrial_motion_planner/trajectory_blender_transition_window.h>
#include "test_utils.h"
#include <rclcpp/rclcpp.hpp>
Go to the source code of this file.
Classes | |
class | ValueTypeContainer< T, N > |
class | TrajectoryGeneratorCommonTest< T > |
class | TrajectoryGeneratorCommonTestNoGripper< T > |
Functions | |
TYPED_TEST_SUITE (TrajectoryGeneratorCommonTest, TrajectoryGeneratorCommonTestTypes,) | |
TYPED_TEST_SUITE (TrajectoryGeneratorCommonTestNoGripper, TrajectoryGeneratorCommonTestTypesNoGripper,) | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InvalideScalingFactor) | |
test invalid scaling factor. The scaling factor must be in the range of [0.0001, 1] More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InvalidGroupName) | |
Test invalid motion plan request for all trajectory generators. More... | |
TYPED_TEST (TrajectoryGeneratorCommonTestNoGripper, GripperGroup) | |
Test invalid motion plan request for all trajectory generators. More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, EmptyJointNamesInStartState) | |
Test invalid motion plan request for all trajectory generators. More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InconsistentStartState) | |
size of joint name and joint position does not match in start state More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, StartPostionOutOfLimit) | |
joint position out of limit in start state More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, StartPositionVelocityNoneZero) | |
Check that no trajectory is generated if a start velocity is given. More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, EmptyGoalConstraints) | |
goal constraints is empty More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, MultipleGoals) | |
multiple goals More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InvalideJointNameInGoal) | |
invalid joint name in joint constraint More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, MissingJointConstraint) | |
MissingJointConstraint. More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InvalideJointPositionInGoal) | |
invalid joint position in joint constraint More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, InvalidLinkNameInCartesianGoal) | |
invalid link name in Cartesian goal constraint More... | |
TYPED_TEST (TrajectoryGeneratorCommonTest, EmptyPrimitivePoses) | |
no pose set in position constraint More... | |
int | main (int argc, char **argv) |
Variables | |
const std::string | PARAM_MODEL_NO_GRIPPER_NAME { "robot_description" } |
const std::string | PARAM_MODEL_WITH_GRIPPER_NAME { "robot_description_pg70" } |
const std::string | PARAM_NAMESPACE_LIMITS { "robot_description_planning" } |
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorCIRC, 0> CIRC_NO_GRIPPER |
Definition at line 80 of file unittest_trajectory_generator_common.cpp.
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorCIRC, 1> CIRC_WITH_GRIPPER |
Definition at line 81 of file unittest_trajectory_generator_common.cpp.
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorLIN, 0> LIN_NO_GRIPPER |
Definition at line 78 of file unittest_trajectory_generator_common.cpp.
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorLIN, 1> LIN_WITH_GRIPPER |
Definition at line 79 of file unittest_trajectory_generator_common.cpp.
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorPTP, 0> PTP_NO_GRIPPER |
Definition at line 76 of file unittest_trajectory_generator_common.cpp.
typedef ValueTypeContainer<pilz_industrial_motion_planner::TrajectoryGeneratorPTP, 1> PTP_WITH_GRIPPER |
Definition at line 77 of file unittest_trajectory_generator_common.cpp.
typedef ::testing::Types<PTP_NO_GRIPPER, PTP_WITH_GRIPPER, LIN_NO_GRIPPER, LIN_WITH_GRIPPER, CIRC_NO_GRIPPER, CIRC_WITH_GRIPPER> TrajectoryGeneratorCommonTestTypes |
Definition at line 85 of file unittest_trajectory_generator_common.cpp.
typedef ::testing::Types<PTP_NO_GRIPPER, LIN_NO_GRIPPER, CIRC_NO_GRIPPER> TrajectoryGeneratorCommonTestTypesNoGripper |
Definition at line 87 of file unittest_trajectory_generator_common.cpp.
typedef ::testing::Types<PTP_WITH_GRIPPER, LIN_WITH_GRIPPER, CIRC_WITH_GRIPPER> TrajectoryGeneratorCommonTestTypesWithGripper |
Definition at line 90 of file unittest_trajectory_generator_common.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 439 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
EmptyGoalConstraints | |||
) |
goal constraints is empty
Definition at line 302 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
EmptyJointNamesInStartState | |||
) |
Test invalid motion plan request for all trajectory generators.
Test if there is a valid inverse kinematics solver for this planning group You can only test this case by commenting the planning_context.launch in the .test file //TODO create a separate robot model without ik solver and use it to create a trajectory generator
test the case of empty joint names in start state
Definition at line 258 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
EmptyPrimitivePoses | |||
) |
no pose set in position constraint
Definition at line 422 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InconsistentStartState | |||
) |
size of joint name and joint position does not match in start state
Definition at line 268 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InvalideJointNameInGoal | |||
) |
invalid joint name in joint constraint
Definition at line 356 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InvalideJointPositionInGoal | |||
) |
invalid joint position in joint constraint
Definition at line 380 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InvalideScalingFactor | |||
) |
test invalid scaling factor. The scaling factor must be in the range of [0.0001, 1]
Definition at line 188 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InvalidGroupName | |||
) |
Test invalid motion plan request for all trajectory generators.
Definition at line 213 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
InvalidLinkNameInCartesianGoal | |||
) |
invalid link name in Cartesian goal constraint
Definition at line 390 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
MissingJointConstraint | |||
) |
MissingJointConstraint.
Definition at line 368 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
MultipleGoals | |||
) |
multiple goals
Definition at line 312 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
StartPositionVelocityNoneZero | |||
) |
Check that no trajectory is generated if a start velocity is given.
Definition at line 292 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTest | , |
StartPostionOutOfLimit | |||
) |
joint position out of limit in start state
Definition at line 278 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST | ( | TrajectoryGeneratorCommonTestNoGripper | , |
GripperGroup | |||
) |
Test invalid motion plan request for all trajectory generators.
Definition at line 223 of file unittest_trajectory_generator_common.cpp.
TYPED_TEST_SUITE | ( | TrajectoryGeneratorCommonTest | , |
TrajectoryGeneratorCommonTestTypes | |||
) |
TYPED_TEST_SUITE | ( | TrajectoryGeneratorCommonTestNoGripper | , |
TrajectoryGeneratorCommonTestTypesNoGripper | |||
) |
const std::string PARAM_MODEL_NO_GRIPPER_NAME { "robot_description" } |
Definition at line 56 of file unittest_trajectory_generator_common.cpp.
const std::string PARAM_MODEL_WITH_GRIPPER_NAME { "robot_description_pg70" } |
Definition at line 57 of file unittest_trajectory_generator_common.cpp.
const std::string PARAM_NAMESPACE_LIMITS { "robot_description_planning" } |
Definition at line 58 of file unittest_trajectory_generator_common.cpp.