Skip to content

Commit

Permalink
Resolved bug in BlueROV2 Heavy and Heavy Reach launch configurations (#…
Browse files Browse the repository at this point in the history
…193)

* Fixed ardusub_gazebo install and mavros configurations

* Remapped controller manager topic to robot state publisher topic

* Added missing gstreamer dependency
  • Loading branch information
evan-palmer authored Jun 25, 2024
1 parent 3c1a0e6 commit 9ddb154
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 62 deletions.
6 changes: 6 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ RUN sudo apt-get -q update \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-bad \
gstreamer1.0-libav \
libgstreamer1.0-dev \
gstreamer1.0-gl \
libgstreamer-plugins-base1.0-dev \
&& sudo apt-get autoremove -y \
&& sudo apt-get clean -y \
&& sudo rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -118,6 +121,9 @@ RUN sudo apt-get -q update \
python3-wxgtk4.0 \
rapidjson-dev \
xterm \
libgz-sim7-dev \
rapidjson-dev \
libopencv-dev \
&& sudo apt-get autoremove -y \
&& sudo apt-get clean -y \
&& sudo rm -rf /var/lib/apt/lists/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ launch:

- arg:
name: mavros_file
default: $(find-pkg-share blue_description)/config/mavros.yaml
default: $(find-pkg-share blue_description)/config/ardusub/mavros.yaml

- arg:
name: manager_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ launch:

- arg:
name: mavros_file
default: $(find-pkg-share blue_description)/config/mavros.yaml
default: $(find-pkg-share blue_description)/config/ardusub/mavros.yaml

- arg:
name: manager_file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, RegisterEventHandler
from launch.event_handlers import OnProcessExit
from launch.substitutions import (
Command,
FindExecutable,
LaunchConfiguration,
PathJoinSubstitution,
)
from launch.substitutions import PathJoinSubstitution
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare

Expand All @@ -52,29 +47,6 @@ def generate_launch_description() -> LaunchDescription:
),
]

robot_description_content = Command(
[
PathJoinSubstitution([FindExecutable(name="xacro")]),
" ",
PathJoinSubstitution(
[
FindPackageShare("blue_demos"),
"control_integration",
"description",
"urdf",
"bluerov2.config.xacro",
]
),
" ",
"prefix:=",
LaunchConfiguration("prefix"),
" ",
"use_sim:=",
LaunchConfiguration("use_sim"),
]
)
robot_description = {"robot_description": robot_description_content}

# The ISMC expects state information to be provided in the FSD frame
mobile_to_maritime_velocity_state = Node(
package="mobile_to_maritime",
Expand All @@ -95,7 +67,6 @@ def generate_launch_description() -> LaunchDescription:
executable="ros2_control_node",
output="both",
parameters=[
robot_description,
PathJoinSubstitution(
[
FindPackageShare("blue_demos"),
Expand All @@ -105,6 +76,9 @@ def generate_launch_description() -> LaunchDescription:
]
),
],
remappings=[
("/controller_manager/robot_description", "/robot_description"),
],
)

velocity_controller_spawner = Node(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, RegisterEventHandler
from launch.event_handlers import OnProcessExit
from launch.substitutions import (
Command,
FindExecutable,
LaunchConfiguration,
PathJoinSubstitution,
)
from launch.substitutions import PathJoinSubstitution
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare

Expand All @@ -51,29 +46,6 @@ def generate_launch_description() -> LaunchDescription:
),
]

robot_description_content = Command(
[
PathJoinSubstitution([FindExecutable(name="xacro")]),
" ",
PathJoinSubstitution(
[
FindPackageShare("blue_demos"),
"control_integration",
"description",
"urdf",
"bluerov2_heavy.config.xacro",
]
),
" ",
"prefix:=",
LaunchConfiguration("prefix"),
" ",
"use_sim:=",
LaunchConfiguration("use_sim"),
]
)
robot_description = {"robot_description": robot_description_content}

# The ISMC expects state information to be provided in the FSD frame
mobile_to_maritime_velocity_state = Node(
package="mobile_to_maritime",
Expand All @@ -94,7 +66,6 @@ def generate_launch_description() -> LaunchDescription:
executable="ros2_control_node",
output="both",
parameters=[
robot_description,
PathJoinSubstitution(
[
FindPackageShare("blue_demos"),
Expand All @@ -104,6 +75,9 @@ def generate_launch_description() -> LaunchDescription:
]
),
],
remappings=[
("/controller_manager/robot_description", "/robot_description"),
],
)

velocity_controller_spawner = Node(
Expand Down

0 comments on commit 9ddb154

Please sign in to comment.