File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,9 @@ client.isServiceServerAvailable();
367367// $ExpectType Promise<boolean>
368368actionClient . waitForServer ( ) ;
369369
370+ // $ExpectType void
371+ actionClient . destroy ( ) ;
372+
370373// $ExpectType Promise<ClientGoalHandle<"rclnodejs_test_msgs/action/Fibonacci">>
371374const goalHandlePromise = actionClient . sendGoal ( new Fibonacci . Goal ( ) ) ;
372375
@@ -411,6 +414,9 @@ actionServer.registerCancelCallback();
411414// $ExpectType void
412415actionServer . registerExecuteCallback ( ( ) => new Fibonacci . Result ( ) ) ;
413416
417+ // $ExpectType void
418+ actionServer . destroy ( ) ;
419+
414420function executeCallback (
415421 goalHandle : rclnodejs . ServerGoalHandle < 'rclnodejs_test_msgs/action/Fibonacci' >
416422) {
Original file line number Diff line number Diff line change @@ -132,5 +132,10 @@ declare module 'rclnodejs' {
132132 * @returns True if the service is available.
133133 */
134134 waitForServer ( timeout ?: number ) : Promise < boolean > ;
135+
136+ /**
137+ * Destroy the underlying action client handle.
138+ */
139+ destroy ( ) : void ;
135140 }
136141}
Original file line number Diff line number Diff line change @@ -173,5 +173,10 @@ declare module 'rclnodejs' {
173173 * @param executeCallback - Callback function.
174174 */
175175 registerExecuteCallback ( executeCallback : ExecuteCallback < T > ) : void ;
176+
177+ /**
178+ * Destroy the action server and all goals.
179+ */
180+ destroy ( ) : void ;
176181 }
177182}
You can’t perform that action at this time.
0 commit comments