Skip to content

Commit 86bfbd8

Browse files
Simplified the example arguments
1 parent 2ee7d12 commit 86bfbd8

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

scripts/listener.js

-7
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ function listener() {
3535
let sub = rosNode.subscribe('/chatter', std_msgs.String,
3636
(data) => { // define callback execution
3737
rosnodejs.log.info('I heard: [' + data.data + ']');
38-
},
39-
{
40-
queueSize: 100,
41-
throttleMs: 10
4238
}
4339
);
4440
});
@@ -48,6 +44,3 @@ if (require.main === module) {
4844
// Invoke Main Listener Function
4945
listener();
5046
}
51-
52-
53-

scripts/talker.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ function talker() {
3232
rosnodejs.initNode('/talker_node')
3333
.then((rosNode) => {
3434
// Create ROS publisher on the 'chatter' topic with String message
35-
let pub = rosNode.advertise( '/chatter', std_msgs.String,
36-
{
37-
queueSize: 1,
38-
latching: true,
39-
throttleMs: 9
40-
}
41-
);
35+
let pub = rosNode.advertise('/chatter', std_msgs.String);
4236
let count = 0;
4337
const msg = new std_msgs.String();
4438
// Define a function to execute every 100ms
@@ -58,6 +52,3 @@ if (require.main === module) {
5852
// Invoke Main Talker Function
5953
talker();
6054
}
61-
62-
63-

0 commit comments

Comments
 (0)