ROS Bridge RobotWebTools Keyboard Teleop
From wikidb
Overview
Adapt the RobotWebTools keyboard teleop example to the Floor Huger robot. This example will capture key events when the keyboard teleop page are in focus. The ROS Bridge Simple Keyboard test required that the focus is within the input textbox.
References
Get the keyboard teleop example. It is located in the examples directory.
git clone https://github.com/RobotWebTools/keyboardteleopjs
Setup
Copy ../keyboardteleopjs/examples/keyboardteleop.html to ~eepp/public_html
Make the following edits capture by diff.
13c13 < <script src="http://cdn.robotwebtools.org/keyboardteleopjs/current/keyboardteleop.js"></script> --- > <script src="../build/keyboardteleop.js"></script> 22c22 < url : 'ws://10.0.0.106:9090' --- > url : 'ws://localhost:9090' 26,27d25 < // default topic is topic : '/cmd_vel' < 29a28 > topic : '/base_controller/command'
42c41 < teleop.scale = (ui.value / 20.0); --- > teleop.scale = (ui.value / 100.0); 48c47 < teleop.scale = ($('#speed-slider').slider('value') / 20.0); --- > teleop.scale = ($('#speed-slider').slider('value') / 100.0);