You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,33 @@ nh.getParam('val')
42
42
// do stuff
43
43
});
44
44
```
45
-
## Messages
45
+
## Generating Messages
46
+
47
+
Messages can be generated in a number of ways depending on the versions of ROS and Node.js you're using.
48
+
- catkin - works in ROS Kinetic and later for Node.js v6+.
49
+
```
50
+
$ catkin_make
51
+
OR
52
+
$ catkin build
53
+
```
54
+
-`loadAllMessages()` - One-time "build" call available through `rosnodejs` for versions of ROS before Kinetic and Node.js v6+. Should be called separately and in advance of processes attempting to use messages.
55
+
```
56
+
const rosnodejs = require('rosnodejs');
57
+
rosnodejs.loadAllPackages();
58
+
```
59
+
- On the fly - all versions of ROS and Node.js 4.5+. When generating on the fly, messages can not be required until the node has initialized.
0 commit comments