Skip to content

Commit

Permalink
Merge pull request #80 from Rehab-Robotics-Lab/users/ajyanand/rosbridge
Browse files Browse the repository at this point in the history
Users/ajyanand/rosbridge
  • Loading branch information
ajyanand authored Apr 22, 2024
2 parents 963122d + 43ea794 commit 28986ca
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
31 changes: 31 additions & 0 deletions flo_web/Dockerfile
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"]





6 changes: 6 additions & 0 deletions flo_web/rosbridge_websocket.launch
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>
5 changes: 5 additions & 0 deletions flo_web/setup.sh
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

0 comments on commit 28986ca

Please sign in to comment.