Revision cfdb3afa
Added latching to publishers so the first message gets noticed.
scout/libscout/src/HeadlightControl.cpp | ||
---|---|---|
51 | 51 |
: node(libscout_node) |
52 | 52 |
{ |
53 | 53 |
set_headlights_pub = node.advertise<headlights::set_headlights> |
54 |
(scoutname + "/set_headlights", QUEUE_SIZE); |
|
54 |
(scoutname + "/set_headlights", QUEUE_SIZE, true);
|
|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
/** |
Also available in: Unified diff