Project

General

Profile

Revision 6ebee82c

ID6ebee82cf91abf048eaf42a61093144dd1743693
Parent bda6eaa0
Child 492d2fde, 673f8af1

Added by Alex Zirbel over 3 years ago

Moved all messages to the messages/ folder.

This meant changing a lot of includes and things.

View differences:

scout/libscout/src/MotorControl.cpp
50 50
    : node(libscout_node)
51 51
{
52 52
    set_motors_pub =
53
        node.advertise<motors::set_motors>(scoutname + "/set_motors",
53
        node.advertise< ::messages::set_motors>(scoutname + "/set_motors",
54 54
                                           QUEUE_SIZE, true);
55 55
    query_motors_client =
56
        node.serviceClient<motors::query_motors>(scoutname + "/query_motors");
56
        node.serviceClient< ::messages::query_motors>(scoutname + "/query_motors");
57 57
}
58 58

  
59 59
MotorControl::~MotorControl()
......
125 125
{
126 126
    check_which_ok(which);
127 127

  
128
    motors::set_motors msg;
128
    ::messages::set_motors msg;
129 129

  
130 130

  
131 131
    /* Tell the motors node which motors need to be updated */
......
223 223
 */
224 224
float MotorControl::query(int which)
225 225
{
226
    motors::query_motors srv;
226
    ::messages::query_motors srv;
227 227
    if(query_motors_client.call(srv))
228 228
    {
229 229
        switch(which)

Also available in: Unified diff