Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Created by https://www.toptal.com/developers/gitignore/api/ros2,visualstudiocode,vim,python,c++,cmake,opencv
# Edit at https://www.toptal.com/developers/gitignore?templates=ros2,visualstudiocode,vim,python,c++,cmake,opencv

### OctoMap ###
*.bt

### C++ ###
# Prerequisites
*.d
Expand Down
12 changes: 11 additions & 1 deletion drone_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 2, ta

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 10., e: 10., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"
ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: -200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 0., e: 0., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 100., e: 100., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 10., e: 10., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 0., e: 0., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 0., e: 0., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 3}"
Expand Down
19 changes: 19 additions & 0 deletions drone_test2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
source drone_ws/install/setup.bash

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 2, takeoff_height: 10.}"


ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 100., e: 100., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 10., e: 10., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 0., e: 0., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 200., e: 200., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 0}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 1, n: 0., e: 0., d: -10., vn: 1., ve: 1., vd: 1., vtol_config: 1}"

ros2 topic pub -t 1 /enqueue_command custom_msgs/msg/Action "{action_type: 3}"

7 changes: 7 additions & 0 deletions drone_ws/src/custom_msgs/msg/DroneState.msg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ uint32 ACRO=12
uint32 STABILIZED=13
uint32 RATTITUDE=14

string current_command

uint32 flight_mode

bool in_air
Expand Down Expand Up @@ -56,6 +58,11 @@ float64 y
float64 z
float64 w

# this is also the attitude, as roll, pitch and yaw
float64 roll_deg
float64 pitch_deg
float64 yaw_deg

# this is the angular velocity (refer to)[https://mariogc.com/post/angular-velocity-quaternions/]
float64 roll_rad_s
float64 pitch_rad_s
Expand Down
58 changes: 0 additions & 58 deletions drone_ws/src/mapping_and_planning/CMakeLists.txt

This file was deleted.

202 changes: 0 additions & 202 deletions drone_ws/src/mapping_and_planning/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions drone_ws/src/mapping_and_planning/README.md

This file was deleted.

This file was deleted.

Loading