Skip to content

Commit ee8d926

Browse files
authored
Merge branch 'main' into yaml_files_for_drone
2 parents 526129c + c46b3b5 commit ee8d926

15 files changed

Lines changed: 822 additions & 250 deletions

File tree

auv_setup/description/nautilus.urdf.xacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<joint name="base_to_dvl" type="fixed">
2626
<parent link="base_link"/>
2727
<child link="dvl_link"/>
28-
<origin xyz="-0.130 0.003 0.2414" rpy="0.0 0.0 0.0"/>
28+
<origin xyz="-0.130 0.003 0.2414" rpy="0.0 0.0 3.14159"/>
2929
</joint>
3030

3131
<!-- base to pressure sensor -->

auv_setup/launch/nucleus_odom_transformer.launch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ def launch_setup(context, *args, **kwargs):
4646
parameters=[
4747
{
4848
"frame_id": f"{namespace}/nucleus_frame",
49+
"qos": "best_effort",
4950
"connection_params.remote_ip": "10.0.0.42",
5051
"connection_params.data_remote_port": 9000,
5152
"connection_params.password": "",
52-
"reset_pose_on_start": True,
5353
"enable_imu": True,
5454
"enable_ins_odom": True,
5555
"enable_dvl": True,
@@ -78,7 +78,7 @@ def launch_setup(context, *args, **kwargs):
7878
"altimeter_settings.power_level": 0, # 0=default
7979
"magnetometer_settings.freq": 75,
8080
"magnetometer_settings.mode": 0,
81-
"instrument_settings.rotxy": 180.0, # Transform currently not working. Maybe fix later
81+
"instrument_settings.rotxy": 0.0, # Transform currently not working. Maybe fix later
8282
"instrument_settings.rotyz": 0.0,
8383
"instrument_settings.rotxz": 0.0,
8484
},
@@ -98,7 +98,6 @@ def launch_setup(context, *args, **kwargs):
9898
"publish_tf": True,
9999
"publish_pose": True,
100100
"publish_twist": True,
101-
"rotate_yaw_180": True,
102101
"topics.input": f"/{namespace}/nucleus/odom",
103102
"topics.output": f"/{namespace}/odom",
104103
"topics.pose": f"/{namespace}/pose",

auv_setup/launch/state_estimation.launch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ def launch_setup(context, *args, **kwargs):
151151
parameters=[
152152
{
153153
"frame_id": f"/{namespace}/nucleus_frame",
154+
"qos": "best_effort",
154155
"connection_params.remote_ip": "10.0.0.42",
155156
"connection_params.data_remote_port": 9000,
156157
"connection_params.password": "",
157-
"reset_pose_on_start": True,
158158
"enable_imu": False,
159159
"enable_ins_odom": False,
160160
"enable_dvl": True,
@@ -183,7 +183,7 @@ def launch_setup(context, *args, **kwargs):
183183
"fast_pressure_settings.sampling_rate": 16,
184184
"magnetometer_settings.freq": 75,
185185
"magnetometer_settings.mode": 0,
186-
"instrument_settings.rotxy": 180.0, # Transform currently not working. Maybe fix later
186+
"instrument_settings.rotxy": 0.0, # Transform currently not working. Maybe fix later
187187
"instrument_settings.rotyz": 0.0,
188188
"instrument_settings.rotxz": 0.0,
189189
}

auv_setup/launch/topside.launch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
)
1111
from launch.substitutions import LaunchConfiguration
1212
from launch.launch_description_sources import PythonLaunchDescriptionSource
13+
from launch.substitutions import LaunchConfiguration
1314
from launch_ros.actions import Node
1415

1516
from auv_setup.launch_arg_common import (
@@ -47,6 +48,7 @@ def launch_setup(context, *args, **kwargs):
4748
"drone": drone,
4849
"orientation_mode": orientation_mode,
4950
"namespace": namespace,
51+
"orientation_mode": orientation_mode,
5052
}.items(),
5153
)
5254

@@ -75,8 +77,9 @@ def generate_launch_description() -> LaunchDescription:
7577
+ [
7678
DeclareLaunchArgument(
7779
"orientation_mode",
78-
default_value="quat",
80+
default_value="euler",
7981
description="Reference orientation representation: 'euler' (ReferenceFilter) or 'quat' (ReferenceFilterQuat)",
82+
choices=["euler", "quat"],
8083
),
8184
OpaqueFunction(function=launch_setup),
8285
]

mission/joystick_interface_auv/joystick_interface_auv/joystick_interface_auv_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self):
6565

6666
def get_parameters(self):
6767
"""Method to get the parameters from the config file."""
68-
self.declare_parameter('drone')
68+
self.declare_parameter('drone', Parameter.Type.STRING)
6969
self._drone = self.get_parameter('drone').value
7070

7171
gain_params = [

mission/joystick_interface_auv/launch/joystick_interface_auv.launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def generate_launch_description() -> LaunchDescription:
6565
"orientation_mode",
6666
default_value="euler",
6767
description="Reference orientation representation: 'euler' (ReferenceFilter) or 'quat' (ReferenceFilterQuat)",
68+
choices=["euler", "quat"],
6869
),
6970
OpaqueFunction(function=launch_setup),
7071
]

motion/thruster_interface_auv/config/thruster_interface_auv_config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
# LEFT: [2.55792, 27.51178, 147.67001, 1472.23069]
2121
# RIGHT: [1.33421, -18.75129, 121.29079, 1528.99886]
2222

23-
i2c:
24-
bus: 7
25-
address: 0x21
23+
uart:
24+
device: "/dev/serial0"
25+
baud_rate: 115200
2626

2727
debug:
28-
flag: False
28+
flag: True

0 commit comments

Comments
 (0)