Web Interface: Difference between revisions
From Rsewiki
No edit summary |
(→test) |
||
Line 1: | Line 1: | ||
// TODO mention browser console | // 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 == | == test == |
Revision as of 07:41, 30 January 2020
// 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