-
Notifications
You must be signed in to change notification settings - Fork 1
cpp camera merge to main #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
5c4341e
7a2cfa5
0bd2a9f
5a1f961
d655f4f
68a2c26
9a2c899
e41a02f
0779e1d
9efad18
58c1a45
e923ac6
f78f1b3
4d81c12
3751b45
f34cfff
0ac1bf3
a188a24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please delete |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| source /opt/ros/humble/setup.bash | ||
| colcon build --symlink-install | ||
| [ -f /ws/install/setup.bash ] && source /ws/install/setup.bash | ||
| [ -f /ws/.venv/bin/activate ] && source /ws/.venv/bin/activate | ||
|
|
||
| colcon build | ||
| ros2 launch autonomous_kart bringup_sim.launch.py |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ def generate_launch_description(): | |
| parameters=[steering_yaml], | ||
| ), | ||
| Node( | ||
| package="autonomous_kart", | ||
| package="autonomous_kart_cpp", | ||
| executable="camera_node", | ||
| name="camera_node", | ||
| parameters=[camera_yaml], | ||
|
Comment on lines
38
to
42
|
||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,20 +1,20 @@ | ||||||
| from glob import glob | ||||||
| from setuptools import setup | ||||||
|
|
||||||
| package_name = 'autonomous_kart' | ||||||
| package_name = "autonomous_kart" | ||||||
|
|
||||||
| setup( | ||||||
| name=package_name, | ||||||
| version="0.0.1", | ||||||
| packages=[ | ||||||
| 'autonomous_kart', | ||||||
| 'autonomous_kart.nodes', | ||||||
| 'autonomous_kart.nodes.motor', | ||||||
| 'autonomous_kart.nodes.steering', | ||||||
| 'autonomous_kart.nodes.camera', | ||||||
| 'autonomous_kart.nodes.gps', | ||||||
| 'autonomous_kart.nodes.pathfinder', | ||||||
| 'autonomous_kart.nodes.opencv_pathfinder', | ||||||
| "autonomous_kart", | ||||||
| "autonomous_kart.nodes", | ||||||
| "autonomous_kart.nodes.motor", | ||||||
| "autonomous_kart.nodes.steering", | ||||||
| # "autonomous_kart.nodes.camera", | ||||||
| "autonomous_kart.nodes.gps", | ||||||
| "autonomous_kart.nodes.pathfinder", | ||||||
| "autonomous_kart.nodes.opencv_pathfinder", | ||||||
| 'autonomous_kart.nodes.e_comms', | ||||||
| 'autonomous_kart.nodes.3dgs_localization', | ||||||
| 'autonomous_kart.nodes.metrics', | ||||||
|
|
@@ -23,14 +23,17 @@ | |||||
| data_files=[ | ||||||
| ("share/ament_index/resource_index/packages", ["resource/" + package_name]), | ||||||
| ("share/" + package_name, ["package.xml"]), | ||||||
| ("share/" + package_name + "/launch", glob("autonomous_kart/launch/*.py")), # Fixed path | ||||||
| ( | ||||||
| "share/" + package_name + "/launch", | ||||||
| glob("autonomous_kart/launch/*.py"), | ||||||
| ), # Fixed path | ||||||
| ("share/" + package_name + "/params", glob("autonomous_kart/params/*.yaml")), | ||||||
| ], | ||||||
| install_requires=["setuptools"], | ||||||
| zip_safe=True, | ||||||
| maintainer='Purdue EVC', | ||||||
| maintainer_email='shay.manor@gmail.com', | ||||||
| license='Apache-2.0', | ||||||
| maintainer="Purdue EVC", | ||||||
| maintainer_email="shay.manor@gmail.com", | ||||||
| license="Apache-2.0", | ||||||
| description="Package containing all nodes for driving in different states.", | ||||||
| tests_require=["pytest"], | ||||||
| entry_points={ | ||||||
|
|
@@ -43,9 +46,10 @@ | |||||
| 'opencv_pathfinder_node = autonomous_kart.nodes.opencv_pathfinder.opencv_pathfinder_node:main', | ||||||
| 'e_comms_node = autonomous_kart.nodes.e_comms.e_comms_node:main', | ||||||
| 'steering_node = autonomous_kart.nodes.steering.steering_node:main', | ||||||
| 'camera_node = autonomous_kart.nodes.camera.camera_node:main', | ||||||
| # 'camera_node = autonomous_kart.nodes.camera.camera_node:main', | ||||||
| "camera_node = autonomous_kart_cpp.camera_node_cpp:main", | ||||||
|
||||||
| "camera_node = autonomous_kart_cpp.camera_node_cpp:main", | |
| # 'camera_node = autonomous_kart_cpp.camera_node_cpp:main', # C++ node, not exposed via Python console_scripts |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||||
| cmake_minimum_required(VERSION 3.8) | ||||||||||
| project(autonomous_kart_cpp) | ||||||||||
|
|
||||||||||
| if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||||||||||
| add_compile_options(-Wall -Wextra -Wpedantic) | ||||||||||
| endif() | ||||||||||
|
|
||||||||||
| # find dependencies | ||||||||||
| find_package(ament_cmake REQUIRED) | ||||||||||
| find_package(rclcpp REQUIRED) | ||||||||||
| find_package(sensor_msgs REQUIRED) | ||||||||||
| find_package(cv_bridge REQUIRED) | ||||||||||
| find_package(OpenCV REQUIRED) | ||||||||||
|
|
||||||||||
| add_executable(camera_node src/camera_node.cpp) | ||||||||||
| ament_target_dependencies(camera_node rclcpp sensor_msgs cv_bridge OpenCV) | ||||||||||
|
||||||||||
| ament_target_dependencies(camera_node rclcpp sensor_msgs cv_bridge OpenCV) | |
| ament_target_dependencies(camera_node rclcpp sensor_msgs cv_bridge) | |
| target_include_directories(camera_node PUBLIC ${OpenCV_INCLUDE_DIRS}) | |
| target_link_libraries(camera_node ${OpenCV_LIBRARIES}) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <?xml version="1.0"?> | ||
| <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
| <package format="3"> | ||
| <name>autonomous_kart_cpp</name> | ||
| <version>0.0.0</version> | ||
| <description>Package containing all high performance nodes for driving in different states.</description> | ||
| <maintainer email="shay.manor@gmail.com">root</maintainer> | ||
| <license>TODO: License declaration</license> | ||
|
|
||
| <buildtool_depend>ament_cmake</buildtool_depend> | ||
|
|
||
| <depend>rclcpp</depend> | ||
| <depend>sensor_msgs</depend> | ||
| <depend>cv_bridge</depend> | ||
| <depend>OpenCV</depend> | ||
|
DueroBone marked this conversation as resolved.
|
||
|
|
||
| <test_depend>ament_lint_auto</test_depend> | ||
| <test_depend>ament_lint_common</test_depend> | ||
|
|
||
| <export> | ||
| <build_type>ament_cmake</build_type> | ||
| </export> | ||
| </package> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this