Skip to content

Commit

Permalink
Refactor launch file to use ParameterValue for robot description and …
Browse files Browse the repository at this point in the history
…remove obsolete xacro file
  • Loading branch information
bocho0600 committed Feb 6, 2025
1 parent ee69b7b commit 24c0cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
5 changes: 3 additions & 2 deletions src/operations/vehicle_urdf/launch/view_qev3d.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from launch.event_handlers import OnProcessExit
from launch.substitutions import Command, FindExecutable, LaunchConfiguration, PathJoinSubstitution
from launch_ros.actions import Node
from launch_ros.parameter_descriptions import ParameterValue
from launch_ros.substitutions import FindPackageShare


Expand Down Expand Up @@ -68,7 +69,7 @@ def generate_launch_description():
prefix,
]
)
robot_description = {"robot_description": robot_description_content}
robot_description = ParameterValue(robot_description_content, value_type=str)

# TODO: SET UP RVIZ2 CONFIGURATION FILE
rviz_config_file = PathJoinSubstitution([FindPackageShare(description_package), "rviz", "robot.rviz"])
Expand All @@ -82,7 +83,7 @@ def generate_launch_description():
package="robot_state_publisher",
executable="robot_state_publisher",
output="both",
parameters=[robot_description],
parameters=[{"robot_description": robot_description}],
)
rviz_node = Node(
package="rviz2",
Expand Down
30 changes: 0 additions & 30 deletions src/operations/vehicle_urdf/urdf/qev3d.ros2_control.xacro

This file was deleted.

0 comments on commit 24c0cc7

Please sign in to comment.