Skip to content

Commit

Permalink
Add missing build instructions to readme (#123)
Browse files Browse the repository at this point in the history
**Public-Facing Changes**
None


**Description**
Add missing rosdep build instructions

Fixes #121
  • Loading branch information
achim-k authored Dec 19, 2022
1 parent 3ffb02b commit 558ab01
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,40 @@ ROS packages will be made available soon for ROS 1 Melodic and Noetic, and ROS 2

In the meantime, you can try foxglove_bridge now by building from source or running a pre-built Docker container.

__ROS 1 Source Build__
### Building from source

#### Fetch source and install dependencies

```bash
cd <path/to/your/ros_ws>
git clone /~https://github.com/foxglove/ros-foxglove-bridge.git src/ros-foxglove-bridge
rosdep update
rosdep install -i --from-path src -y
```

#### ROS 1
```
catkin_make
source install/local_setup.bash
rosrun foxglove_bridge foxglove_bridge
```

__ROS 2 Source Build__

```bash
cd <path/to/your/ros_ws>
git clone /~https://github.com/foxglove/ros-foxglove-bridge.git src/ros-foxglove-bridge
#### ROS 2
```
colcon build
source install/local_setup.bash
ros2 run foxglove_bridge foxglove_bridge
```

__ROS 1 Docker__
### Docker

#### ROS 1

```bash
docker run --rm -it -v /opt/ros:/opt/ros --net=host ghcr.io/foxglove/noetic-ros1-bridge
```

__ROS 2 Docker__
#### ROS 2

```bash
docker run --rm -it -v /opt/ros:/opt/ros --net=host ghcr.io/foxglove/galactic-ros2-bridge
Expand Down

0 comments on commit 558ab01

Please sign in to comment.