Skip to content

ros2jsguy/ros2-js-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ros2-js-examples

ROS 2 examples from the ros2jsguy articles.

  • Example-1: node-publisher
  • Example-2: node-subscriber
  • Example-3: laserscan-publisher
  • Example-4: Conway's Game of Life

The project is implemented using TypeScript, Node.js and the rclnodejs ROS 2 client library.

Prerequisites

Installation and Running

From a command shell run the commands shown in the following steps.

Step-1 Clone ros2_js_examples github repository

git clone https://github.com/ros2jsguy/ros2_js_examples.git

You should see the project code downloaded to a new directory named `ros2_js_example.

Step-2 Install Project Dependencies

cd ros2_js_examples
npm install

This may take 1-2 minutes to complete as the rclnodejs package must be compiled as part of the installation process.

Step-3 Run TypeScript Compiler

npm run build

Step-4 Run examples

Each src/example* folder includes a README that describes the example and provides details for building and running the example.

About

ROS 2 JavaScript examples from the ros2jsguy articles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published