Difference between revisions of "ROS2 rclnodejs"
From ElphelWiki
(Created page with "==Installation instructions for Kubuntu 18.04 Bionic== How to start a nodejs application for ROS2 with rclnodejs * [https://colcon.readthedocs.io/en/master/user/installation....") |
|||
Line 13: | Line 13: | ||
</font> | </font> | ||
* Then need to source only: | * Then need to source only: | ||
− | '''source ~/ros2_ws/install/setup.bash''' | + | <font size='2'>'''source ~/ros2_ws/install/setup.bash''' |
* Then clone [https://github.com/RobotWebTools/rclnodejs rclnodejs] | * Then clone [https://github.com/RobotWebTools/rclnodejs rclnodejs] | ||
− | cd rclnodejs | + | <font size='2'>cd rclnodejs |
'''source ~/ros2_ws/install/setup.bash''' | '''source ~/ros2_ws/install/setup.bash''' | ||
yarn install | yarn install | ||
yarn link | yarn link | ||
+ | </font> | ||
* Then use [https://expressjs.com/en/starter/generator.html express generator] to create some project: | * Then use [https://expressjs.com/en/starter/generator.html express generator] to create some project: | ||
− | '''source ~/ros2_ws/install/setup.bash''' | + | <font size='2'>'''source ~/ros2_ws/install/setup.bash''' |
cd to some project | cd to some project | ||
yarn link "rclnodejs" | yarn link "rclnodejs" | ||
Line 27: | Line 28: | ||
... | ... | ||
yarn start | yarn start | ||
+ | </font> |
Revision as of 13:03, 19 December 2018
Installation instructions for Kubuntu 18.04 Bionic
How to start a nodejs application for ROS2 with rclnodejs
- Install colcon
- Get ros2-bouncy-linux-bionic-x86_64.tar.bz2 from release page
- Unpack to somewhere
- Create ros2 workspace for development, see Colcon tutorial
- Clone ros2-interfaces to ~/ros2_ws/src
- Build:
cd ~/ros2_ws source somehwere/ros2-linux/setup.bash colcon build --packages-select elphel_interfaces
- Then need to source only:
source ~/ros2_ws/install/setup.bash
- Then clone rclnodejs
cd rclnodejs source ~/ros2_ws/install/setup.bash yarn install yarn link
- Then use express generator to create some project:
source ~/ros2_ws/install/setup.bash cd to some project yarn link "rclnodejs" ... yarn add jquery or anything else ... yarn start