Skip to content

Commit

Permalink
Feature/karmaanyah color sensor final (#119)
Browse files Browse the repository at this point in the history
# PR Summary
PR Link: [Link](#119)

### Description
Adds color sensor interfacing work and demonstrated on hardware. This is
@karmanyaahm's work, I spun out this branch to handle branch conflicts.

### Reviewers
Tag reviewers.

- Required: @MaxxWilson @karmanyaahm 
  
- Optional: @JakeWendling 

---
### Changelog
- Adds color sensor interfaces under ghost_sensing
- Adds subscriber in tank plugin

### Testing
#### Automatic
- None
#### Manual
- `03_ROS/ghost_sensing/test/color_sensor_test.py`

---------

Co-authored-by: JakeWendling <[email protected]>
Co-authored-by: Karmanyaah Malhotra <[email protected]>
Co-authored-by: xwilson03 <[email protected]>
Co-authored-by: linh tran <[email protected]>
Co-authored-by: Karmanyaah Malhotra <[email protected]>
Co-authored-by: MELISSA CRUZ <[email protected]>
  • Loading branch information
7 people authored Feb 17, 2025
1 parent 96c0bed commit f012432
Show file tree
Hide file tree
Showing 13 changed files with 2,390 additions and 2 deletions.
33 changes: 33 additions & 0 deletions 03_ROS/ghost_sensing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,39 @@ install(TARGETS
imu_filter_node
DESTINATION lib/${PROJECT_NAME})

# TCS Color Sensor
add_executable(tcs_color_sensor
src/driver_tcs34725_interface.cpp
src/driver_tcs34725.cpp
src/tcs_color_sensor.cpp
)
ament_target_dependencies(tcs_color_sensor
${DEPENDENCIES}
)
target_link_libraries(tcs_color_sensor i2c)
target_include_directories(tcs_color_sensor
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
install(TARGETS
tcs_color_sensor
DESTINATION lib/${PROJECT_NAME})

# Color Classifier
add_executable(color_classifier
src/color_classifier.cpp
)
ament_target_dependencies(color_classifier
${DEPENDENCIES}
)
target_include_directories(color_classifier
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
install(TARGETS
color_classifier
DESTINATION lib/${PROJECT_NAME})

#################
#### Install ####
#################
Expand Down
Loading

0 comments on commit f012432

Please sign in to comment.