RobotsIO
Loading...
Searching...
No Matches
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
11using namespace RobotsIO::Utils;
12using namespace yarp::os;
13
14
15template <>
17{
18 data_ = convert_from(*(RobotsIO::Utils::any_cast<const Parameters*>(get_data())));
19
20 this->send_data(data_);
21}
22
23
24template <>
26{
27 Parameters2YarpBottle parameters_2_bottle(data);
28 return parameters_2_bottle.extract_to_bottle();
29}