Skip to content

Commit

Permalink
Prepare Panda test launch
Browse files Browse the repository at this point in the history
  • Loading branch information
henningkayser committed Nov 30, 2021
1 parent 1406b10 commit 0a16433
Show file tree
Hide file tree
Showing 21 changed files with 34 additions and 365 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,4 @@ install(TARGETS ${UNIT_TEST_SOURCEFILES}
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib/${PROJECT_NAME})

install(DIRECTORY config DESTINATION share/${PROJECT_NAME})
install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ def load_yaml(package_name, file_path):
return None


def load_test_data(robot_setup, test_data_file):
return load_yaml(
"pilz_industrial_motion_planner",
"test/test_data/" + robot_setup + "/config/" + test_data_file,
)


class MoveItConfigs:
robot_description = {}
robot_description_semantic = {}
Expand All @@ -45,10 +52,10 @@ class MoveItConfigs:


def load_moveit_config():
moveit_config_package_name = "moveit_resources_prbt_moveit_config"
description_package_name = "moveit_resources_prbt_support"
description_xacro_file = "urdf/prbt.xacro"
robot_description_semantic_file = "config/prbt.srdf.xacro"
moveit_config_package_name = "moveit_resources_panda_moveit_config"
description_package_name = "moveit_resources_panda_description"
description_xacro_file = "urdf/panda.urdf"
robot_description_semantic_file = "config/panda.srdf"
robot_description_kinematics_file = "config/kinematics.yaml"
joint_limits_file = "config/joint_limits.yaml"
cartesian_limits_file = "config/cartesian_limits.yaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from launch import LaunchDescription
from launch_ros.actions import Node
from launch_testing.util import KeepAliveProc
from common_parameters import load_test_data


def load_file(package_name, file_path):
Expand All @@ -33,9 +34,8 @@ def load_yaml(package_name, file_path):

@pytest.mark.rostest
def generate_test_description():
cartesian_limits_yaml = load_yaml(
"pilz_industrial_motion_planner",
"config/unittest_cartesian_limits_aggregator.yaml",
cartesian_limits_yaml = load_test_data(
"panda", "unittest_cartesian_limits_aggregator.yaml"
)

# run test
Expand Down
Loading

0 comments on commit 0a16433

Please sign in to comment.