rclnodejs v0.5.0
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