npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rclnodejs-cli

v0.3.1

Published

Commandline tools for the ROS2 rclnodejs client library

Downloads

150

Readme

rclnodejs-cliBuild Status

Standalone commandline tools and ros2 cli extension for use with the ROS2 rclnodejs client library.

  • create-package
  • generate-ros-messages

Prerequisites

  • ROS2 Foxy or greater including the colcon build tools
  • Node.js versions 14.0-19.X
  • npm or yarn package manager
  • A shell environment that includes ROS2. See Configuring a ROS2 Environment for more info.

Installation

Install the rclnodejs-cli package globally or alternatively use npx to run rclnodejs-cli directly from a shell.

Note: Your shell environment should include ROS2.

To install rclnodejs-cli globally run the following command from a shell:

  npm install -g rclnodejs-cli

Optional

You can extend the ros2 cli with additional commands and options from this package by sourcing the `install/setup.[bat,bash,ps1,sh] file.

On Linux run:

  source <rclnodejs-cli-dir>/install/setup.bash

On Windows run:

  <rclnodejs-cli-dir>\install\setup.bat
or
  <rclnodejs-cli-dir>\install\setup.ps1

For more information on using an rclnodejs-cli tool from the ros2 cli see the references to tool/command user-guides below.

Usage

List available commands

If rclnodejs-cli is installed globally run:

  rclnodejs-cli -h

Alternatively use npx as shown:

  npx rclnodejs-cli -h

The default commandline output follows:

           _                 _       _
  _ __ ___| |_ __   ___   __| | ___ (_)___
 | '__/ __| | '_ \ / _ \ / _` |/ _ \| / __|
 | | | (__| | | | | (_) | (_| |  __/| \__ \
 |_|  \___|_|_| |_|\___/ \__,_|\___|/ |___/
                                  |__/
Usage: rclnodejs [command] [options]
    
Options:
  -h, --help                               display help for command

Commands:
  create-package <package-name> [options]  Create a ROS2 package for Nodejs development.
  generate-ros-messages                    Generate JavaScript code from ROS2 IDL interfaces
  help [command]                           display help for command

List a subcommand details

  rclnodejs-cli <subcommand> -h
or
  npx rclnodejs-cli <subcommand> -h

Example

  rclnodejs-cli create-package -h
or
  npx rclnodejs-cli create-package -h

Commands

create-package command

The rclnodejs-cli create-package command creates a hybrid ROS2-Nodejs package that can coexist and participate with other ROS2 packages in a ROS2 workspace and be run using the ROS2 launch facility. A ROS2-Nodejs package consist of a ROS2 package, specifically an ament-cmake ROS2 package, overlaid with a Nodejs package.

Learn more about the create-package tool.

generate-ros-messages command

Generate JavaScript messages corresponding to the interfaces (.IDL) in your ROS2 environment. Run this command from the root folder of a Nodejs package that includes rlcnodejs as a dependency. The JavaScript message files are created in the node_modules/rclnodejs/generated/ folder of the current Nodejs package.

Learn more about the generate-ros-messages tool.

Getting Help / Providing Feedback

Please post bug reports, feature requests and general discussion topics to the rclnodejs-cli project on github.

Contributors

Wayne Parrott
Minggang Wang