-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from Rehab-Robotics-Lab/users/ajyanand/rosbridge
Users/ajyanand/rosbridge
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#use melodic robot bionic base image from ROS foundation | ||
FROM ros:melodic-robot-bionic | ||
|
||
#make super user | ||
RUN su | ||
|
||
#set environment variable | ||
ARG ROS_DISTRO=melodic | ||
ENV ROS_DISTRO="$ROS_DISTRO" | ||
|
||
#install essential tools | ||
RUN apt-get update -y && apt-get install -y \ | ||
neovim \ | ||
tmux \ | ||
git \ | ||
python3 \ | ||
python3-catkin-tools \ | ||
ros-$ROS_DISTRO-catkin\ | ||
ros-$ROS_DISTRO-rosbridge-suite | ||
|
||
#clear cache | ||
RUN apt-get clean | ||
|
||
|
||
ENTRYPOINT ["./ros_entrypoint.sh"] | ||
CMD ["bash"] | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- modify port value to attach to a different websocket --> | ||
<launch> | ||
<include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch" > | ||
<arg name="port" value="8080"/> | ||
</include> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ARG ROS_DISTRO=melodic | ||
ENV ROS_DISTRO="$ROS_DISTRO" | ||
|
||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
roslaunch rosbridge_server rosbridge_websocket.launch |