You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gazebo Simulation: Simulates the ROSMASTER-X3 responding to a stop light
Important Note - Implementation on the ROSMASTER-X3
Because I'm on Macos and docker and camera don't play nice the current node reads images from a mounted directory
~/camera_shared/frame.jpg if you want to test on an image before camera functionality is added you can add the image to that folder, and you will get an output /camera_shared/discretized.jpg.
TODO
Custom message for color/counts (smth like this) or maybe even publishe the RGB color values,
# Clone this repository
git clone https://github.com/EndangeredConfusion/S25_Crystal_Final_Project.git
cd S25_Crystal_Final_Project
sudo apt install ros-foxy-rtabmap-ros
# Source your ROS 2 environmentsource /opt/ros/foxy/setup.bash
# Build the workspace
colcon build
# Source againsource install/setup.bash
# After you build and source the project you should be able to do install the Python dependencies (torch might take a while)cd src/ColorReader
pip3 install .
Run the Node
# Source the overlay workspacesource install/setup.bash
# Run the node (update the name if you have a specific entry point)# <type> should either be the value "image", "video", or "slam"# Something else or nothing will default to video mode
ros2 run ColorReader img_processor --ros-args -p mode:=<type># Examples:
ros2 run ColorReader img_processor --ros-args -p mode:=image
ros2 run ColorReader img_processor --ros-args -p mode:=video
ros2 run ColorReader img_processor --ros-args -p mode:=slam
# Defaults to video mode
ros2 run ColorReader img_processor
# In a seperate terminal
ros2 topic echo /color_counts
Developer Notes
GitHub Collaboration
Ensure .gitignore is respected to avoid committing build/, install/, log/, and Python cache files.
Created using VS Code with dev containers, .devcontainer/ is supported but ignored by Git.