We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b04a2 commit b4f381dCopy full SHA for b4f381d
README.md
@@ -61,7 +61,22 @@ const AddTwoInts = rosnodejs.require('beginner_tutorials').srv.AddTwoInts;
61
const service = nh.advertiseService('/add_two_ints', AddTwoInts, (req, resp) => { ... });
62
const client = nh.serviceClient('/add_two_ints', AddTwoInts);
63
```
64
+## Actions (Experimental)
65
+```
66
+const nh = rosnodejs.nh;
67
+const as = new rosnodejs.ActionServer({
68
+ nh,
69
+ type: 'turtle_actionlib/ShapeAction',
70
+ actionServer: '/turtle_shape'
71
+});
72
73
+as.on('goal, function (goal) {
74
+ goal.setAccepted();
75
76
+
77
+const ac = nh.actionClientInterface('/turtle_shape, 'turtle_actionlib/ShapeAction');
78
+ac.sendGoal({ goal: {edges: 3, radius: 1}});
79
80
## Run the turtlesim example
81
82
Start:
0 commit comments