Project

General

Profile

Revision c5901d9a

IDc5901d9a84f4da28cc66755edb7701d79f84d0e3
Parent d1ba04dc
Child 3f9fa843, 676cbe0e, ffaa3e81

Added by Priya over 3 years ago

Added Metal Detector to the sensor class. Now behaviors can access it. Also made it directly return the bool from messages.

View differences:

scout/libscout/src/MetalDetectorControl.cpp
53 53
bool MetalDetectorControl::query()
54 54
{
55 55
    ::messages::query_metal_detector srv;
56
    bool metal;
57 56

  
58 57
    if (!query_client.call(srv))
59 58
    {
60 59
        ROS_ERROR("MetalDetectorControl query failed.");
61 60
    }
62
    metal = srv.response.metal;
63

  
64
    return metal;
61
    return srv.response.metal;
65 62
}

Also available in: Unified diff