TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
ray.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_RAY_H_
2#define INCLUDE_TINYURDF_CORE_RAY_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <vector>
7
13class Ray {
14public:
15 Ray();
17 void setDistances(const std::vector<double>& d);
18 void getDistances(std::vector<double>& d) const;
19 void setIntensities(const std::vector<double>& i);
20 void getIntensities(std::vector<double>& i) const;
21 void setHorizontalMinAngle(double a);
22 void getHorizontalMinAngle(double& a) const;
23 void setHorizontalMaxAngle(double a);
24 void getHorizontalMaxAngle(double& a) const;
25 void setVerticalMinAngle(double a);
26 void getVerticalMinAngle(double& a) const;
27 void setVerticalMaxAngle(double a);
28 void getVerticalMaxAngle(double& a) const;
30 void getHorizontalSamples(int& s) const;
31 void setVerticalSamples(int s);
32 void getVerticalSamples(int& s) const;
33 void setResolution(double r);
34 void getResolution(double& r) const;
35 void update();
36 void reset();
37 void getDistances(std::vector<double>& d, std::vector<double>& i) const;
38 void getTypename(const char* t) const;
39private:
40 std::vector<double> distances;
41 std::vector<double> intensities;
42 double horizontal_min_angle;
43 double horizontal_max_angle;
44 double vertical_min_angle;
45 double vertical_max_angle;
46 int horizontal_samples;
47 int vertical_samples;
48 double resolution;
49};
50
51#endif // INCLUDE_TINYURDF_CORE_RAY_H_
Class representing a ray in the system. This class stores information related to distances,...
Definition ray.h:13
void getVerticalMinAngle(double &a) const
void setResolution(double r)
void setDistances(const std::vector< double > &d)
void reset()
void setVerticalMaxAngle(double a)
void getHorizontalSamples(int &s) const
void setHorizontalMinAngle(double a)
void setIntensities(const std::vector< double > &i)
void getResolution(double &r) const
void getDistances(std::vector< double > &d) const
void setVerticalSamples(int s)
void getHorizontalMaxAngle(double &a) const
void getVerticalMaxAngle(double &a) const
~Ray()
void getTypename(const char *t) const
void update()
void getDistances(std::vector< double > &d, std::vector< double > &i) const
void getHorizontalMinAngle(double &a) const
void getVerticalSamples(int &s) const
void setHorizontalSamples(int s)
void getIntensities(std::vector< double > &i) const
void setHorizontalMaxAngle(double a)
void setVerticalMinAngle(double a)