Skip to content

Commit 468eac6

Browse files
committed
Remove cfg folder. Adapt launch files.
1 parent 54b7f7e commit 468eac6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

ur_description/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ install(DIRECTORY launch DESTINATION share/${PROJECT_NAME})
77
install(DIRECTORY urdf DESTINATION share/${PROJECT_NAME})
88
install(DIRECTORY meshes DESTINATION share/${PROJECT_NAME})
99
install(DIRECTORY config DESTINATION share/${PROJECT_NAME})
10-
install(DIRECTORY cfg DESTINATION share/${PROJECT_NAME})
11-
1210

1311
ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS})
1412

ur_description/launch/view_ur.launch.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ def load_file(package_name, file_path):
1919
def generate_launch_description():
2020

2121
# set ur robot
22-
robot_name = 'ur5e'
22+
robot_name = 'ur5_e'
2323

2424
# <robot_name> parameters files
2525
joint_limits_params = os.path.join(get_package_share_directory('ur_description'), 'config/' +
26-
robot_name, 'joint_limits.yaml')
26+
robot_name.replace('_', ''), 'joint_limits.yaml')
2727
kinematics_params = os.path.join(get_package_share_directory('ur_description'), 'config/' +
28-
robot_name, 'default_kinematics.yaml')
28+
robot_name.replace('_', ''), 'default_kinematics.yaml')
2929
physical_params = os.path.join(get_package_share_directory('ur_description'), 'config/' +
30-
robot_name, 'physical_parameters.yaml')
30+
robot_name.replace('_', ''), 'physical_parameters.yaml')
3131
visual_params = os.path.join(get_package_share_directory('ur_description'), 'config/' +
32-
robot_name, 'visual_parameters.yaml')
32+
robot_name.replace('_', ''), 'visual_parameters.yaml')
3333

3434
# common parameters
3535
# If True, enable the safety limits controller
@@ -54,7 +54,8 @@ def generate_launch_description():
5454

5555
robot_description = {'robot_description': robot_description_config.toxml()}
5656

57-
robot_description_semantic_config = load_file(robot_name + '_moveit_config', 'config/' + robot_name + '.srdf')
57+
robot_description_semantic_config = load_file(robot_name + '_moveit_config', 'config/' +
58+
robot_name.replace('_', '') + '.srdf')
5859
robot_description_semantic = {'robot_description_semantic' : robot_description_semantic_config}
5960

6061
# We do not have a robot connected, so publish fake joint states
@@ -73,7 +74,7 @@ def generate_launch_description():
7374

7475
# RViz
7576
rviz_config_file = get_package_share_directory(
76-
'ur_description') + "/cfg/view_robot.rviz"
77+
'ur_description') + "/config/rviz/view_robot.rviz"
7778
rviz_node = Node(package='rviz2',
7879
executable='rviz2',
7980
name='rviz2',

0 commit comments

Comments
 (0)