Skip to content

Commit a5be499

Browse files
committed
thruster testing works to an extent, needs modification of stoppping values
1 parent 1a9ab15 commit a5be499

27 files changed

+805
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Start from the ROS Noetic base image
2+
FROM ros:noetic
3+
4+
# Set noninteractive frontend for apt
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
# Update package lists and install necessary packages
8+
RUN apt update && \
9+
apt install -y tmux git vim \
10+
ros-noetic-rosserial ros-noetic-rosserial-arduino python3-catkin-tools && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
# Source ROS setup
14+
RUN echo "source /opt/ros/noetic/setup.bash" >> /root/.bashrc
15+
16+
# Default command
17+
CMD ["bash"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build
2+
logs
3+
devel
4+
.catkin_tools
5+
src/propulsion/src/__pycache__
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
cmake_minimum_required(VERSION 3.0.2)
2+
project(auv_msgs)
3+
4+
# set of packages whose message types are used
5+
set(MSG_DEP_SET
6+
actionlib_msgs
7+
geometry_msgs
8+
std_msgs
9+
)
10+
11+
12+
find_package(catkin REQUIRED COMPONENTS
13+
${MSG_DEP_SET}
14+
message_generation
15+
)
16+
17+
add_message_files(FILES
18+
ThrusterMicroseconds.msg
19+
ThrusterForces.msg
20+
PingerBearing.msg
21+
PingerTimeDifference.msg
22+
VisionObject.msg
23+
VisionObjectArray.msg
24+
DeadReckonReport.msg
25+
VelocityReport.msg
26+
UnityState.msg
27+
)
28+
29+
30+
add_action_files(FILES
31+
StateQuaternion.action
32+
Effort.action
33+
)
34+
35+
generate_messages(DEPENDENCIES
36+
${MSG_DEP_SET}
37+
)
38+
39+
catkin_package(CATKIN_DEPENDS
40+
${MSG_DEP_SET}
41+
message_runtime
42+
)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# goal
2+
geometry_msgs/Wrench effort
3+
std_msgs/Bool do_surge
4+
std_msgs/Bool do_sway
5+
std_msgs/Bool do_heave
6+
std_msgs/Bool do_roll
7+
std_msgs/Bool do_pitch
8+
std_msgs/Bool do_yaw
9+
---
10+
# result
11+
std_msgs/Bool stopped
12+
---
13+
# feedback
14+
std_msgs/Bool moving
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# goal
2+
geometry_msgs/Pose pose
3+
std_msgs/Bool do_x
4+
std_msgs/Bool do_y
5+
std_msgs/Bool do_z
6+
std_msgs/Bool do_quaternion
7+
std_msgs/Bool displace
8+
std_msgs/Bool local
9+
---
10+
# result
11+
std_msgs/Bool status
12+
---
13+
# feedback
14+
std_msgs/Bool status
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
float64 x
2+
float64 y
3+
float64 z
4+
5+
float64 roll
6+
float64 pitch
7+
float64 yaw
8+
9+
float64 std
10+
11+
bool status
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int32 frequency
2+
geometry_msgs/Vector3 pinger_bearing
3+
4+
float64 state_x
5+
float64 state_y
6+
float64 state_z
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
int32 frequency
2+
uint32[] times
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# force with which to spin each thruster (N)
2+
float64 BACK_LEFT
3+
float64 HEAVE_BACK_LEFT
4+
float64 HEAVE_FRONT_LEFT
5+
float64 FRONT_LEFT
6+
float64 FRONT_RIGHT
7+
float64 HEAVE_FRONT_RIGHT
8+
float64 HEAVE_BACK_RIGHT
9+
float64 BACK_RIGHT
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#Thruster definitions
2+
uint8 BACK_LEFT=0
3+
uint8 HEAVE_BACK_LEFT=1
4+
uint8 HEAVE_FRONT_LEFT=2
5+
uint8 FRONT_LEFT=3
6+
uint8 FRONT_RIGHT=4
7+
uint8 HEAVE_FRONT_RIGHT=5
8+
uint8 HEAVE_BACK_RIGHT=6
9+
uint8 BACK_RIGHT=7
10+
11+
uint16[8] microseconds

0 commit comments

Comments
 (0)