Web Interface

From Rsewiki
Revision as of 08:41, 30 January 2020 by S163903 (talk | contribs) (→‎test)

// TODO mention browser console

roslibjs

This library makes it possible to use ros commands with javascript over a chosen port. Here's a TLDR for all the commands:

cd ~/flexbot_ws/src
catkin_create_pkg robot_gui_bridge rosbridge_server
apt-get install ros-melodic-rosbridge-server 
mkdir ~/flexbot_ws/src/robot_gui_bridge/launch
touch ~/flexbot_ws/src/robot_gui_bridge/launch/websocket.launch
echo '<launch> <include file="$(find rosbridge_server)/launch/rosbridge_websocket.launch"/></launch>' >> ~/flexbot_ws/src/robot_gui_bridge/launch/websocket.launch
source ~/flexbot_ws/devel/setup.bash
roslaunch robot_gui_bridge websocket.launch

To install this do go to the source folder of the catkin workspace:


Web Interface - Interface for ROS and browser


test