Project

General

Profile

Revision cfdb3afa

IDcfdb3afa0e50aa1385d0b3be55e3b374fabf9889

Added by Alex Zirbel about 11 years ago

Added latching to publishers so the first message gets noticed.

View differences:

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
/**
scout/libscout/src/MotorControl.cpp
51 51
{
52 52
    set_motors_pub =
53 53
        node.advertise<motors::set_motors>(scoutname + "/set_motors",
54
                                           QUEUE_SIZE);
54
                                           QUEUE_SIZE, true);
55 55
    query_motors_client =
56 56
        node.serviceClient<motors::query_motors>(scoutname + "/query_motors");
57 57
}
scout/libscout/src/WirelessSender.cpp
48 48
    packet.pan = pan;
49 49
    packet.channel = channel;
50 50
    pub = node.advertise< ::messages::WirelessPacket>("/wireless/send",
51
                                                      QUEUE_SIZE);
51
                                                      QUEUE_SIZE, true);
52 52
}
53 53

  
54 54
void WirelessSender::setType(uint16_t type)

Also available in: Unified diff