RaymondCM / rasberry_perception

General purpose ROS package for using deep learning/object detection frameworks on robots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow dockers to use remote ROS_MASTER_URI

RaymondCM opened this issue · comments

Suggestion to enable this functionality is to change

docker run --network host --gpus all --name $1_backend --rm -it $image_name 

in line to

ROS_URI="${ROS_MASTER_URI:-"localhost:11311"}
docker run --network host --gpus all --name $1_backend --rm -it $image_name -e ROS_MASTER_URI="${ROS_URI}"

@Melanoneiro please merge if testing is successful.