diff --git a/example/actions/action_server/action-server-defer-example.js b/example/actions/action_server/action-server-defer-example.js index 23bdeb36..5a2768f3 100644 --- a/example/actions/action_server/action-server-defer-example.js +++ b/example/actions/action_server/action-server-defer-example.js @@ -83,7 +83,8 @@ class FibonacciActionServer { handleAcceptedCallback(goalHandle) { this._node.getLogger().info('Deferring execution...'); this._goalHandle = goalHandle; - this._timer = this._node.createTimer(BigInt(3000000), () => + // Set timeout period to 3s (in nanoseconds). + this._timer = this._node.createTimer(3000000000n, () => this.timerCallback() ); } diff --git a/example/rosidl/rosidl-parse-action-example.js b/example/rosidl/rosidl-parse-action-example.js index 39662452..e95d3778 100644 --- a/example/rosidl/rosidl-parse-action-example.js +++ b/example/rosidl/rosidl-parse-action-example.js @@ -15,6 +15,7 @@ const rosInstallPath = process.env.AMENT_PREFIX_PATH; const packageName = 'test_msgs'; const packagePath = rosInstallPath + '/share/test_msgs/action/Fibonacci.action'; +const parser = require('../../rosidl_parser/rosidl_parser.js'); parser .parseActionFile(packageName, packagePath)