Difference between revisions of "ROS2 rclnodejs"

From ElphelWiki
Jump to: navigation, search
Line 10: Line 10:
 
  <font size='2'>cd ~/ros2_ws
 
  <font size='2'>cd ~/ros2_ws
 
  source '''somehwere'''/ros2-linux/setup.bash
 
  source '''somehwere'''/ros2-linux/setup.bash
  colcon build --packages-select elphel_interfaces
+
  colcon build --packages-select elphel_interfaces</font>
</font>
 
 
* Then need to source only:
 
* Then need to source only:
 
  <font size='2'>'''source ~/ros2_ws/install/setup.bash'''
 
  <font size='2'>'''source ~/ros2_ws/install/setup.bash'''
Line 18: Line 17:
 
  '''source ~/ros2_ws/install/setup.bash'''
 
  '''source ~/ros2_ws/install/setup.bash'''
 
  yarn install
 
  yarn install
  yarn link
+
  yarn link</font>
</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:
 
  <font size='2'>'''source ~/ros2_ws/install/setup.bash'''
 
  <font size='2'>'''source ~/ros2_ws/install/setup.bash'''
Line 27: Line 25:
 
  yarn add jquery or anything else
 
  yarn add jquery or anything else
 
  ...
 
  ...
  yarn start
+
  yarn start</font>
</font>
 

Revision as of 14:04, 19 December 2018

Installation instructions for Kubuntu 18.04 Bionic

How to start a nodejs application for ROS2 with rclnodejs

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
cd rclnodejs
source ~/ros2_ws/install/setup.bash
yarn install
yarn link
source ~/ros2_ws/install/setup.bash
cd to some project 
yarn link "rclnodejs"
...
yarn add jquery or anything else
...
yarn start