Skip to content

Commit

Permalink
add twist mux to physical bringup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalTheCoder committed Nov 4, 2024
1 parent 27b2a06 commit 3aeff7b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions urc_bringup/launch/bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ def generate_launch_description():
pkg_nmea_navsat_driver = FindPackageShare("nmea_navsat_driver").find(
"nmea_navsat_driver"
)
pkg_urc_platform = get_package_share_directory("urc_platform")

controller_config_file_dir = os.path.join(
pkg_urc_bringup, "config", "controller_config.yaml"
)
twist_mux_config = os.path.join(pkg_urc_platform, "config", "twist_mux.yaml")
use_sim_time = LaunchConfiguration("use_sim_time", default="true")

xacro_file = os.path.join(
Expand Down Expand Up @@ -125,10 +127,13 @@ def generate_launch_description():
parameters=[{"port": 9090}],
)

twist_mux = IncludeLaunchDescription(
PythonLaunchDescriptionSource(
[FindPackageShare("twist_mux"), "/launch/twist_mux_launch.py"]
)
twist_mux_node = Node(
package="twist_mux",
executable="twist_mux",
name="twist_mux",
output="screen",
parameters=[twist_mux_config],
remappings=[("/cmd_vel_out", "/rover_drivetrain_controller/cmd_vel")],
)

odom_frame_node = Node(
Expand All @@ -152,13 +157,13 @@ def generate_launch_description():
load_joint_state_broadcaster,
load_drivetrain_controller,
load_status_light_controller,
twist_mux_node,
# load_arm_controller,
# load_gripper_controller_left,
# load_gripper_controller_right,
teleop_launch,
launch_gps,
rosbridge_server_node,
twist_mux,
odom_frame_node
]
)

0 comments on commit 3aeff7b

Please sign in to comment.