Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to publish SRDF file. #1089

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions ur_moveit_config/launch/ur_moveit.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def launch_setup(context, *args, **kwargs):
# General arguments
description_package = LaunchConfiguration("description_package")
description_file = LaunchConfiguration("description_file")
_publish_robot_description_semantic = LaunchConfiguration("publish_robot_description_semantic")
moveit_config_package = LaunchConfiguration("moveit_config_package")
moveit_joint_limits_file = LaunchConfiguration("moveit_joint_limits_file")
moveit_config_file = LaunchConfiguration("moveit_config_file")
Expand Down Expand Up @@ -143,6 +144,8 @@ def launch_setup(context, *args, **kwargs):
)
robot_description_semantic = {"robot_description_semantic": robot_description_semantic_content}

publish_robot_description_semantic = {"publish_robot_description_semantic": _publish_robot_description_semantic}

robot_description_kinematics = PathJoinSubstitution(
[FindPackageShare(moveit_config_package), "config", "kinematics.yaml"]
)
Expand Down Expand Up @@ -205,6 +208,7 @@ def launch_setup(context, *args, **kwargs):
parameters=[
robot_description,
robot_description_semantic,
publish_robot_description_semantic,
robot_description_kinematics,
robot_description_planning,
ompl_planning_pipeline_config,
Expand Down Expand Up @@ -312,6 +316,13 @@ def generate_launch_description():
description="URDF/XACRO description file with the robot.",
)
)
declared_arguments.append(
DeclareLaunchArgument(
"publish_robot_description_semantic",
default_value="False",
v-marsh marked this conversation as resolved.
Show resolved Hide resolved
description="Whether to publish the SRDF description on topic /robot_description_semantic."
)
)
declared_arguments.append(
DeclareLaunchArgument(
"moveit_config_package",
Expand Down