Overview
The detect and navigate example combines:- Object detection using OWLv2 model
- Robot movement control
- Real-time camera feed processing
- Velocity-based navigation
Core Components
Detection Model
We use the OWLv2 model for object detection:Navigation Functions
Box Center Calculation
This function calculates the center point of detected objects and checks if they’re too close:Velocity Calculation
This function determines how the robot should move based on the target’s position:Main Control Loop
The main loop continuously:- Captures images from the robot’s camera
- Detects the target object
- Calculates required movement
- Controls the robot’s motion
Robot Setup
Simulated Robot (Isaac Quadruped)
For simulation environments, use the Isaac Quadruped configuration:Real Robot (Go2)
For physical robot deployment, use the Go2 configuration:Running the Example
- First, ensure you have GRID installed and set up properly.
- Choose your robot type:
- Define your target object:
- Run the main loop:
Remember to stop the robot if it gets too close to the target object or if you need to interrupt the operation.