Skip to content

Commit f8042f5

Browse files
authored
Merge pull request #12 from SoonerRobotics/feat/manual
Feat/manual
2 parents f83dd68 + ad3e018 commit f8042f5

15 files changed

+821
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ Zone.Identifier
2121

2222
deps/songs
2323
autonav_ws/src/scr/include/scr/websocketpp/**/*:Zone.Identifier
24+
25+
# python
26+
**/venv
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<launch>
2+
<!-- Manual controller -->
3+
<node pkg="autonav_manual" exec="controller_input.py"/>
4+
<node pkg="autonav_manual" exec="manual_24.py"/>
5+
<node pkg="autonav_manual" exec="motormessage_listener.py"/>
6+
7+
<!-- Other -->
8+
<node pkg="autonav_display" exec="display.py" />
9+
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<launch>
2+
<include file="$(find-pkg-share rosbridge_server)/launch/rosbridge_websocket_launch.xml" />
3+
4+
<!-- xbox manual control -->
5+
<node pkg="autonav_manual" exec="controller_input.py"/>
6+
<node pkg="autonav_manual" exec="manual_24.py"/>
7+
<!-- <node pkg="autonav_manual" exec="motormessage_listener.py"/> -->
8+
9+
<!-- Other -->
10+
<!-- <node pkg="autonav_display" exec="display.py" /> -->
11+
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<launch>
2+
<!-- Manual controller -->
3+
<node pkg="autonav_manual" exec="controller_input.py"/>
4+
<node pkg="autonav_manual" exec="manual_25.py"/>
5+
<!-- <node pkg="autonav_manual" exec="motormessage_listener.py"/> -->
6+
7+
<!-- Other -->
8+
<!-- <node pkg="autonav_display" exec="display.py" /> -->
9+
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<launch>
2+
<include file="$(find-pkg-share rosbridge_server)/launch/rosbridge_websocket_launch.xml" />
3+
4+
<!-- xbox manual control -->
5+
<node pkg="autonav_manual" exec="controller_input.py"/>
6+
<node pkg="autonav_manual" exec="manual_25.py"/>
7+
<!-- <node pkg="autonav_manual" exec="motormessage_listener.py"/> -->
8+
9+
<!-- Other -->
10+
<!-- <node pkg="autonav_display" exec="display.py" /> -->
11+
</launch>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
3+
project(autonav_manual)
4+
5+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
6+
add_compile_options(-Wall -Wextra -Wpedantic)
7+
endif()
8+
9+
# find dependencies
10+
find_package(ament_cmake REQUIRED)
11+
find_package(rclcpp REQUIRED)
12+
find_package(rclpy REQUIRED)
13+
find_package(rosidl_default_generators REQUIRED)
14+
find_package(autonav_msgs REQUIRED)
15+
find_package(autonav_shared REQUIRED)
16+
# uncomment the following section in order to fill in
17+
# further dependencies manually.
18+
# find_package(<dependency> REQUIRED)
19+
20+
# msgs and srvs
21+
#rosidl_generate_interfaces(${PROJECT_NAME}
22+
# add message types here
23+
#"path_to_message/message.msg"
24+
#)
25+
26+
# C++
27+
28+
# Inlcude Cpp "include" directory
29+
include_directories(include)
30+
31+
# Create Cpp executables
32+
#add_executable(executable_name path_to_executable/executable.cpp)
33+
#ament_target_dependencies(executable_name rclcpp other_dependencies)
34+
35+
# Install Cpp executables
36+
install(TARGETS
37+
# install executables by name
38+
# executable_name
39+
DESTINATION lib/${PROJECT_NAME}
40+
)
41+
42+
# Python
43+
44+
# Use only if not using rosidl_generate_interfaces
45+
# Install Python modules
46+
#ament_python_install_package(${PROJECT_NAME})
47+
48+
# Install Python programs
49+
install(PROGRAMS
50+
# add programs in format:
51+
#/path_to_program/program.py
52+
src/controller_input.py
53+
src/controller_listener.py
54+
src/manual_24.py
55+
src/manual_25.py
56+
src/motormessage_listener.py
57+
DESTINATION lib/${PROJECT_NAME}
58+
)
59+
60+
61+
if(BUILD_TESTING)
62+
find_package(ament_lint_auto REQUIRED)
63+
# the following line skips the linter which checks for copyrights
64+
# comment the line when a copyright and license is added to all source files
65+
set(ament_cmake_copyright_FOUND TRUE)
66+
# the following line skips cpplint (only works in a git repo)
67+
# comment the line when this package is in a git repo and when
68+
# a copyright and license is added to all source files
69+
set(ament_cmake_cpplint_FOUND TRUE)
70+
ament_lint_auto_find_test_dependencies()
71+
endif()
72+
73+
ament_package()

autonav_ws/src/autonav_manual/LICENSE

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy
2+
of this software and associated documentation files (the "Software"), to deal
3+
in the Software without restriction, including without limitation the rights
4+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5+
copies of the Software, and to permit persons to whom the Software is
6+
furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in
9+
all copies or substantial portions of the Software.
10+
11+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
14+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
17+
THE SOFTWARE.
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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>autonav_manual</name>
5+
<version>2025.0.1</version>
6+
<description>Contains nodes for reading, using, and debugging controller input</description>
7+
<maintainer email="antonioc@email.here">tony</maintainer>
8+
<license>MIT</license>
9+
10+
<buildtool_depend>ament_cmake</buildtool_depend>
11+
<buildtool_depend>ament_cmake_python</buildtool_depend>
12+
13+
<depend>rclcpp</depend>
14+
<depend>rclpy</depend>
15+
<depend>autonav_msgs</depend>
16+
<depend>autonav_shared</depend>
17+
18+
<build_depend>rosidl_default_generators</build_depend>
19+
20+
<exec_depend>rosidl_default_runtime</exec_depend>
21+
<exec_depend>evdev</exec_depend>
22+
<exec_depend>std_msgs</exec_depend>
23+
<exec_depend>time</exec_depend>
24+
<exec_depend>ros2launch</exec_depend>
25+
26+
<member_of_group>rosidl_interface_packages</member_of_group>
27+
28+
<test_depend>ament_lint_auto</test_depend>
29+
<test_depend>ament_lint_common</test_depend>
30+
31+
<export>
32+
<build_type>ament_cmake</build_type>
33+
</export>
34+
</package>

0 commit comments

Comments
 (0)