RobotsIO
Loading...
Searching...
No Matches
src
RobotsIO
src
Utils
YarpBottleProbe.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/Parameters2YarpBottle.h>
9
#include <RobotsIO/Utils/YarpBottleProbe.hpp>
10
11
using namespace
RobotsIO::Utils;
12
using namespace
yarp::os;
13
14
15
template
<>
16
void
RobotsIO::Utils::YarpBottleProbe<RobotsIO::Utils::Parameters>::on_new_data
()
17
{
18
data_ = convert_from(*(RobotsIO::Utils::any_cast<const Parameters*>(get_data())));
19
20
this->send_data(data_);
21
}
22
23
24
template
<>
25
Bottle
YarpBottleProbe<Parameters>::convert_from
(
const
Parameters
& data)
26
{
27
Parameters2YarpBottle
parameters_2_bottle(data);
28
return
parameters_2_bottle.extract_to_bottle();
29
}
Parameters2YarpBottle
Definition:
Parameters2YarpBottle.h:17
RobotsIO::Utils::Parameters
Definition:
Parameters.h:186
RobotsIO::Utils::YarpBottleProbe
Definition:
YarpBottleProbe.hpp:30
Generated by
1.9.6