Commit 5e91043
committed
Simplified construction of complex messages
- can now provide all data, incl. for sub-messages, directly in
message constructor. E.g.:
```js
let now = Date.now();
let secs = parseInt(now/1000);
let nsecs = (now % 1000) * 1000;
let shapeMsg = new shapeActionGoal({
header: {
seq: 0,
stamp: {
secs: secs,
nsecs: nsecs
},
frame_id: ''
},
goal_id: {
stamp: {
secs: secs,
nsecs: nsecs
},
id: "/my_node-1-"+secs+"."+nsecs+"000"
},
goal: {
edges: 5,
radius: 1
}
});
```1 parent 6c61ff3 commit 5e91043
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
509 | 518 | | |
510 | 519 | | |
511 | 520 | | |
| |||
0 commit comments