RobotsIO
Loading...
Searching...
No Matches
Probe.cpp
1/*
2 * Copyright (C) 2019 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#include <RobotsIO/Utils/Probe.h>
9
10using namespace RobotsIO::Utils;
11
12
13Probe::~Probe()
14{}
15
16
17void Probe::set_data(const Data& data)
18{
19 data_ = data;
20
21 /* Signal that new data has been set. */
22 on_new_data();
23}
24
25
26Data& Probe::get_data()
27{
28 return data_;
29}