Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 872 Bytes

File metadata and controls

26 lines (21 loc) · 872 Bytes

👀 Segment Anything 2 + ROS Noetic + Docker 🐳

Quickstart

Read instructions on the main branch first. To use with ROS, run:

docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --gpus all sam2-ros-docker bash

Inside the container, run

source ~/.bashrc
gnome-terminal

Connecting to ROS running on the local host

Run roscore in both machines to find the port being used. Then close the container and rerun with the -p flag:

docker run -it -p [HOST_PORT]:[CONTAINER_PORT] -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --gpus all sam2-ros-docker bash

To test, run roscore in the docker container and rostopic list on the local host. The local host should show

/rosout
/rosout_agg