March 2018
Intermediate to advanced
1396 pages
42h 14m
English
In this section, we'll see how to initialize keyboard teleoperation. We've already discussed a JS module to handle keyboard teleoperation. The following code shows the initialization of that module:
var teleop = new KEYBOARDTELEOP.Teleop({
ros : ros,
topic : teleop_topic
});
This will create a handler of the KEYBOARDTELEOP.Teleop class with the given topic name. The topic name is already defined in the beginning of the code. We also need to pass the ROS node object we created earlier.