Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags. |
Developing Rosbridge
Description: This tutorial shows you how to develop on rosbridge itself.Keywords: rosbridge, Robot Web Tools
Tutorial Level: INTERMEDIATE
Contents
Rosbridge suite comes with a default set of packages for talking the rosbridge protocol over a WebSocket transport layer. However, the protocol is transport layer agnostic, and could very well support TCP and other transports. Pull requests for these additional transport packages are highly encouraged!
This tutorial is meant to help you get started building and developing rosbridge itself.
Building Rosbridge
Rosbridge 2.0 is fully catkinized and the build procedure is similar for other Catkin-based packages.
Install the rosbridge dependency rosauth
sudo apt-get install ros-groovy-rosauth
- Source ROS
source /opt/ros/groovy/setup.bash
- Create a workspace:
mkdir ~/ws
- Clone the rosbridge suite
mkdir ~/ws/src cd ~/ws/src git clone https://github.com/RobotWebTools/rosbridge_suite.git
- Build rosbridge
cd ~/ws catkin_make
- Add the freshly installed rosbridge to your ROS path
cd ~/ws source devel/setup.bash
You can now run rosbridge just like in the Running Rosbridge tutorial.