Previous
Part 5: Productize
This guide walks you through setting up the Gazebo simulation used in the Your First Project tutorial.
The simulation runs in a Docker container with Gazebo Harmonic and viam-server pre-installed.
Clone the simulation repository:
git clone https://github.com/viamrobotics/can-inspection-simulation.git
cd can-inspection-simulation
Build the Docker image:
docker build -t gz-harmonic-viam .
This takes 5-10 minutes depending on your internet connection.
inspection-station-1can-inspection-simulation directory, create a file called station1-viam.json
docker run --name gz-station1 -d \
-p 8080:8080 -p 8081:8081 -p 8443:8443 \
-v "$(pwd)/station1-viam.json:/etc/viam.json" \
gz-harmonic-viam
docker run --name gz-station1 -d `
-p 8080:8080 -p 8081:8081 -p 8443:8443 `
-v "${PWD}\station1-viam.json:/etc/viam.json" `
gz-harmonic-viam
Check container logs:
docker logs gz-station1
Look for:
View the simulation:
Open your browser to http://localhost:8081
You should see a web-based 3D view of the inspection station with:

Verify machine connection:
inspection-station-1Stop the container:
docker stop gz-station1
Start a stopped container:
docker start gz-station1
Remove the container (to recreate):
docker rm gz-station1
View logs:
docker logs -f gz-station1
Once your machine shows Live in the Viam app, you’re ready to continue with the tutorial.
Continue to Part 1: Vision Pipeline →
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!