rclnodejs v0.7.0
Feature Added
- Add Clock/ROSClock class support.
- Add TimeSource class support, which enables you to attach
Clock
s to it and update them by receiving the topic ofbuiltin_interfaces/msg/Time
.
Improvements
- As the maximum safe integer in JavaScript is (2^53 - 1) due to double-precision floating-point format numbers specified in IEEE_754, the
int64_t
cannot be represented in JavaScript. We are going to use the string format of the integer forTime
andDuration
when exceeding the limitation, e.g.
let time = new Time(0, '9007199254740992'); // time.nanoseconds equals '9007199254740992'
let duration = new Duration(0, '9007199254740992'); // duration.nanoseconds equals '9007199254740992'