diff --git a/ur_simulation_gazebo/CMakeLists.txt b/ur_simulation_gazebo/CMakeLists.txt
index 4d8e988..63e3125 100644
--- a/ur_simulation_gazebo/CMakeLists.txt
+++ b/ur_simulation_gazebo/CMakeLists.txt
@@ -3,7 +3,7 @@ project(ur_simulation_gazebo)
find_package(ament_cmake REQUIRED)
-install(DIRECTORY config launch
+install(DIRECTORY config launch urdf
DESTINATION share/${PROJECT_NAME}
)
diff --git a/ur_simulation_gazebo/launch/ur_sim_control.launch.py b/ur_simulation_gazebo/launch/ur_sim_control.launch.py
index 44d1a14..2dbe16d 100644
--- a/ur_simulation_gazebo/launch/ur_sim_control.launch.py
+++ b/ur_simulation_gazebo/launch/ur_sim_control.launch.py
@@ -53,8 +53,6 @@ def launch_setup(context, *args, **kwargs):
# General arguments
runtime_config_package = LaunchConfiguration("runtime_config_package")
controllers_file = LaunchConfiguration("controllers_file")
- description_package = LaunchConfiguration("description_package")
- description_file = LaunchConfiguration("description_file")
prefix = LaunchConfiguration("prefix")
start_joint_controller = LaunchConfiguration("start_joint_controller")
initial_joint_controller = LaunchConfiguration("initial_joint_controller")
@@ -65,7 +63,7 @@ def launch_setup(context, *args, **kwargs):
)
rviz_config_file = PathJoinSubstitution(
- [FindPackageShare(description_package), "rviz", "view_robot.rviz"]
+ [FindPackageShare("ur_description"), "rviz", "view_robot.rviz"]
)
robot_description_content = Command(
@@ -73,7 +71,7 @@ def launch_setup(context, *args, **kwargs):
PathJoinSubstitution([FindExecutable(name="xacro")]),
" ",
PathJoinSubstitution(
- [FindPackageShare(description_package), "urdf", description_file]
+ [FindPackageShare("ur_simulation_gazebo"), "urdf", "ur_gazebo.urdf.xacro"]
),
" ",
"safety_limits:=",
@@ -94,8 +92,6 @@ def launch_setup(context, *args, **kwargs):
"prefix:=",
prefix,
" ",
- "sim_gazebo:=true",
- " ",
"simulation_controllers:=",
initial_joint_controllers,
]
@@ -223,21 +219,6 @@ def generate_launch_description():
description="YAML file with the controllers configuration.",
)
)
- declared_arguments.append(
- DeclareLaunchArgument(
- "description_package",
- default_value="ur_description",
- description="Description package with robot URDF/XACRO files. Usually the argument \
- is not set, it enables use of a custom description.",
- )
- )
- declared_arguments.append(
- DeclareLaunchArgument(
- "description_file",
- default_value="ur.urdf.xacro",
- description="URDF/XACRO description file with the robot.",
- )
- )
declared_arguments.append(
DeclareLaunchArgument(
"prefix",
diff --git a/ur_simulation_gazebo/urdf/ur_gazebo.ros2_control.xacro b/ur_simulation_gazebo/urdf/ur_gazebo.ros2_control.xacro
new file mode 100644
index 0000000..85bd50a
--- /dev/null
+++ b/ur_simulation_gazebo/urdf/ur_gazebo.ros2_control.xacro
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gazebo_ros2_control/GazeboSystem
+
+
+
+
+
+
diff --git a/ur_simulation_gazebo/urdf/ur_gazebo.urdf.xacro b/ur_simulation_gazebo/urdf/ur_gazebo.urdf.xacro
new file mode 100644
index 0000000..1372fd5
--- /dev/null
+++ b/ur_simulation_gazebo/urdf/ur_gazebo.urdf.xacro
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(arg simulation_controllers)
+
+
+
+
+
+