File tree Expand file tree Collapse file tree 11 files changed +389
-216
lines changed
vehicles/hardware/dji/dji_captain/dji_captain Expand file tree Collapse file tree 11 files changed +389
-216
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ __pycache__
5
5
6
6
mpc_codegen
7
7
c_generated_code
8
+
9
+ COLCON_IGNORE
Original file line number Diff line number Diff line change 52
52
[submodule "utilities/serial_ping_pkg "]
53
53
path = utilities/serial_ping_pkg
54
54
url = https://github.com/NinjaTuna007/serial_ping_pkg.git
55
- [submodule "external_equipment/PlayStation-JoyInterface-ROS2 "]
56
- path = external_equipment/PlayStation-JoyInterface-ROS2
57
- url = https://github.com/HarvestX/PlayStation-JoyInterface-ROS2
58
- branch = humble
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.8 )
2
+ project (dji_msgs )
3
+
4
+ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
5
+ add_compile_options (-Wall -Wextra -Wpedantic )
6
+ endif ()
7
+
8
+ # Find necessary dependencies
9
+ find_package (ament_cmake REQUIRED )
10
+ find_package (rosidl_default_generators REQUIRED )
11
+
12
+ find_package (geometry_msgs REQUIRED )
13
+ find_package (sensor_msgs REQUIRED )
14
+ find_package (std_msgs REQUIRED )
15
+
16
+ # Generate drone-related message and service interfaces
17
+ rosidl_generate_interfaces (${PROJECT_NAME}
18
+ "msg/Topics.msg" # Topics for the drone
19
+ "msg/Links.msg" #links for drone
20
+ DEPENDENCIES geometry_msgs sensor_msgs std_msgs
21
+ )
22
+
23
+ # Add build tests (if testing is enabled)
24
+ if (BUILD_TESTING )
25
+ find_package (ament_lint_auto REQUIRED )
26
+ # Skipping linting for copyright and cpplint
27
+ set (ament_cmake_copyright_FOUND TRUE )
28
+ set (ament_cmake_cpplint_FOUND TRUE )
29
+ ament_lint_auto_find_test_dependencies ()
30
+ endif ()
31
+
32
+ ament_package ()
33
+
Original file line number Diff line number Diff line change
1
+ #
2
+ # DJI Drone links and relevant frames
3
+ # Most are published by the dji_captain node
4
+ #
5
+
6
+ string UTM = 'utm'
7
+ string MAP = 'map'
8
+ string ODOM = 'odom'
9
+ string HOME_POINT = 'home_point'
10
+
11
+ string BASE_LINK = 'base_link'
12
+ string BASE_FLAT = 'base_flat_link'
13
+ string BASE_ENU = 'base_ENU_link'
14
+
Original file line number Diff line number Diff line change
1
+ # Used by the dji_captain, namespaced as needed.
2
+ # Usually under /M350
3
+ string MOVE_TO_SETPOINT_TOPIC = 'move_to_setpoint'
4
+ string CONTROLLER_INPUT_TOPIC = 'joy'
5
+ string CONTROLLER_VIBRATION_TOPIC = 'joy/set_feedback'
6
+ string TTS_TOPIC = 'speak'
7
+
8
+
9
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <?xml-model href =" http://download.ros.org/schema/package_format3.xsd" schematypens =" http://www.w3.org/2001/XMLSchema" ?>
3
+ <package format =" 3" >
4
+ <name >dji_msgs</name >
5
+ <version >0.1.0</version >
6
+ <description >The dji_msgs package</description >
7
+ <
maintainer email =
" [email protected] " >aryan</
maintainer >
8
+ <license >MIT</license >
9
+
10
+ <buildtool_depend >ament_cmake</buildtool_depend >
11
+ <test_depend >ament_lint_auto</test_depend >
12
+ <test_depend >ament_lint_common</test_depend >
13
+
14
+ <depend >geometry_msgs</depend >
15
+ <depend >sensor_msgs</depend >
16
+ <depend >std_msgs</depend >
17
+
18
+ <!-- Message gen depends -->
19
+ <build_depend >rosidl_default_generators</build_depend >
20
+ <exec_depend >rosidl_default_runtime</exec_depend >
21
+ <member_of_group >rosidl_interface_packages</member_of_group >
22
+
23
+ <export >
24
+ <build_type >ament_cmake</build_type >
25
+ </export >
26
+ </package >
Original file line number Diff line number Diff line change
1
+ <launch >
2
+ <arg name =" robot_name" default =" M350" />
3
+
4
+ <group >
5
+ <push-ros-namespace namespace =" $(var robot_name)" />
6
+ <node name =" joy" pkg =" joy" exec =" game_controller_node" output =" screen" />
7
+ <node name =" speaker" pkg =" smarc_utilities" exec =" simple_tts" output =" screen" />
8
+ </group >
9
+
10
+ </launch >
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ if [ "$USE_SIM_TIME" = "False" ]; then
49
49
tmux send-keys " ros2 topic echo /$ROBOT_NAME /captain_status std_msgs/msg/String --field data" C-m
50
50
51
51
tmux select-pane -t $SESSION :0.3
52
- tmux send-keys " cd ~ && ./record_bag_ex_camComp.sh" C-m
52
+ # tmux send-keys "cd ~ && ./record_bag_ex_camComp.sh" C-m
53
+ tmux send-keys " fast-discovery-server -i 0" C-m
53
54
else
54
55
tmux select-window -t $SESSION :0
55
56
tmux send-keys " ros2 topic pub /$ROBOT_NAME /smarc/vehicle_health std_msgs/msg/Int8 \" data: 0\" -r 5" C-m
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments