Skip to main content

ROS 1

Visualize your robot live

The best way to visualize your live ROS 1 robot in Foxglove is using the Foxglove Bridge. It's written in C++ with sensible defaults to get you up and running quickly and is designed for high performance with low overhead. It's also highly configurable.

1. Run the Foxglove Bridge

The Foxglove Bridge for ROS 1 is distributed as a Docker image. Your robot needs no changes: the bridge container connects to your existing ROS 1 stack over normal ROS connections.

docker run --rm --network host \
-e ROS_MASTER_URI=http://localhost:11311 \
-e ROS_HOSTNAME=localhost \
us-central1-docker.pkg.dev/foxglove-images/images/foxglove_bridge:ros-noetic-v0.0.0

Replace v0.0.0 with a valid release version. To run the bridge on a different host than your robot, point ROS_MASTER_URI at the robot's ROS master and set ROS_HOSTNAME to an address of the bridge host that the robot can reach.

The Foxglove Bridge will automatically subscribe to all topics in your ROS system and make them available for live visualization over WebSocket.

note

The Foxglove Bridge only supports ROS 1 Noetic.

2. Connect to your robot:

Ensure Foxglove Bridge is running.

Make sure you are on the same network as your robot. In Foxglove, select Open connection from the dashboard or left-hand menu.

Select open connection

Select Foxglove WebSocket in the Open a new connection dialog, then enter the URL of the server:

Foxglove WebSocket dialog

Click "Open" to connect.

note

Local development: Use ws://localhost:8765 when running the server on the same machine as Foxglove.

Robot connection: Use ws://ROBOT_IP:8765 when connecting to a server running on your robot, where ROBOT_IP is your robot's IP address on the network.

tip

While Foxglove does support rosbridge and ROS 1 native connections, we recommend always using the Foxglove Bridge for the best features, performance, and stability.

Explore your data

Your data is now available for exploring in Foxglove. Add some panels to begin visualizing what your robot is seeing and producing. Not sure where to start? Try adding a Raw Messages panel, Plot panel, or 3D panel.

To list available topics, open the left sidebar and open the Topics tab.

Topics tab

Learn more