Setting up rosbridge client libraries

To store all these library files, you can create a folder called ros_web_ws. Actually, there is no need to create a catkin workspace because we don't need to build the modules. You will get the prebuilt modules once you download it from the repositories.

Switch to the ros_web_ws folder and run the following commands to clone each ROS JavaScript library:

For roslibjs:

    $ git clone https://github.com/RobotWebTools/roslibjs.git

For ros2djs:

    $ git clone https://github.com/RobotWebTools/ros2djs

For ros3djs:

    $ git clone https://github.com/RobotWebTools/ros3djs

If you check out the ros3djs folder, you will see the following:

Figure 2: The ros3d_js module folder

The build folder contains the ros3djs.js modules, which can be used in our web application, and in the examples folder, you can find starter web applications. Similar to ros3djs, you can also find examples from roslibjs and ros2djs.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.239.82