Skip to content

rclnodejs v0.17.0

Choose a tag to compare

@minggangw minggangw released this 27 Nov 03:29
· 357 commits to develop since this release

Feature

  • ROS2 Lifecycle Node (managed node) #722
  async init() {
    await rclnodejs.init();

    this._count = COUNTD_DOWN;
    this._node = rclnodejs.createLifecycleNode(NODE_NAME);
    this._node.registerOnConfigure((prevState)=>this.onConfigure(prevState));
    this._node.registerOnActivate((prevState)=>this.onActivate(prevState));
    this._node.registerOnDeactivate((prevState)=>this.onDeactivate(prevState));
    this._node.registerOnShutdown((prevState)=>this.onShutdown(prevState));
    this._StateInterface = rclnodejs.createMessage('lifecycle_msgs/msg/State').constructor;

    rclnodejs.spin(this._node);
  }

Bug Fix

  • Problem with space in path #711
  • Shuts down all contexts on sigint; remove g_sigint_gc #720
  • Fix action support to interface_loader.loadInterfaceByPath() #730
  • Fix some compilation warnings generated by: node-gyp rebuild (#734)
  • Removed unused vars #741

Others

  • Improve the docs & shutdown behavior when the node process is terminated #721
  • Cleanup Message Generation #726
  • Clean up some tests #725
  • Simplify rclnodejs/index.js #737