YARP
Yet Another Robot Platform
LaserMeasurementData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_LASERMEASURMENTDATA_H
10 #define YARP_DEV_LASERMEASURMENTDATA_H
11 
12 #include <yarp/dev/api.h>
13 
18 namespace yarp{
19  namespace dev{
20  class LaserMeasurementData;
21  }
22 }
23 
28 {
29  double stored_x;
30  double stored_y;
31  double stored_angle;
32  double stored_distance;
33 public:
35  void set_cartesian(const double x, const double y);
36  void set_polar(const double rho, const double theta);
37  void get_cartesian(double& x, double& y);
38  void get_polar(double& rho, double& theta);
39 };
40 
41 #endif // YARP_DEV_LASERMEASURMENTDATA_H
yarp::dev::LaserMeasurementData
\LaserMeasurementData
Definition: LaserMeasurementData.h:28
yarp::dev::LaserMeasurementData::get_polar
void get_polar(double &rho, double &theta)
Definition: LaserMeasurementData.cpp:34
yarp::dev::LaserMeasurementData::get_cartesian
void get_cartesian(double &x, double &y)
Definition: LaserMeasurementData.cpp:29
yarp::dev::LaserMeasurementData::set_polar
void set_polar(const double rho, const double theta)
Definition: LaserMeasurementData.cpp:24
yarp::dev::LaserMeasurementData::LaserMeasurementData
LaserMeasurementData()
Definition: LaserMeasurementData.cpp:14
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::LaserMeasurementData::set_cartesian
void set_cartesian(const double x, const double y)
Definition: LaserMeasurementData.cpp:19
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
api.h