Skip to content

rclnodejs v0.5.0

Choose a tag to compare

@minggangw minggangw released this 03 Sep 03:26
· 499 commits to develop since this release

Release Note

New Features

  • Actions (experimental)
    The actionlib stack provides a standardized interface for interfacing with preemptable tasks, by leveraging the actionlib_nodejs module, we implemented it as an experimental feature in this release. You can simply define a .action file
# Define the goal
uint32 dishwasher_id  # Specify which dishwasher we want to use
---
# Define the result
uint32 total_dishes_cleaned
---
# Define a feedback message
float32 percent_complete
# Use a message from another package, to prove that it works
sensor_msgs/Image image

create a client

  const ac = new rclnodejs.ActionClientInterface({
    type: 'ros1_actions/msg/DoDishes',
    actionServer: 'dishes',
    rclnodejs: rclnodejs
  });

create a server

  const as = new rclnodejs.ActionLib.ActionServer({
    type: 'ros1_actions/msg/DoDishes',
    actionServer: 'dishes',
    rclnodejs: rclnodejs
  });

Also, you could reference the tutorial for detailed usage.

Changes

  • Fix compiling error due to change of rcl #413