Skip to content

Commit da2f6ef

Browse files
committed
Address comments
1 parent dba2fa3 commit da2f6ef

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tutorials/lifecycle-nodes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ class LifecycleRobotController {
348348
switch (msg.data.toLowerCase()) {
349349
case 'stop':
350350
console.log('🛑 Stop command received, shutting down...');
351-
this.shutdown();
351+
this.node.shutdown();
352352
break;
353353
case 'pause':
354354
console.log('⏸️ Pause command received, deactivating...');
@@ -384,7 +384,6 @@ class LifecycleRobotController {
384384

385385
shutdown() {
386386
console.log('🔚 Initiating shutdown sequence...');
387-
this.node.deactivate();
388387
this.node.shutdown();
389388
rclnodejs.shutdown();
390389
process.exit(0);
@@ -512,7 +511,7 @@ class SystemManager {
512511

513512
async init() {
514513
await rclnodejs.init();
515-
this.node = rclnodejs.create_node('system_manager');
514+
this.node = rclnodejs.createNode('system_manager');
516515
}
517516

518517
async startupSequence() {

0 commit comments

Comments
 (0)