TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
camera.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CAMERA_H_
2#define INCLUDE_TINYURDF_CAMERA_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include "sensor_base.h"
7#include "image.h"
8#include "pose.h"
9
10class Camera : public SensorBase<Image<double,4>>{
11public:
16 Camera();
17 Camera(const Camera& rhs);
18 void reset() override;
19 void update() override;
20 void getOrigin(double* xyz) const override;
21 void setType(Type t_);
22 void setType(const char* c);
23 void setUpdateRate(double ur) override;
24 void getUpdateRate(double& ur) const override;
25 void setOrigin(std::shared_ptr<Pose> o) override;
26 const char* getTypename() override;
27 void getRange(Image<double,4>& r) override;
28 void setRange(Image<double,4>& r) override;
29 void get(Image<double,4>& o) const override;
30 void print(std::ostream& os) override;
31private:
32 Type type;
33 std::shared_ptr<Pose> origin;
34 std::shared_ptr<Image<double,4>> mat;
35 double hfov, near, far, update_rate;
36};
37#endif // INCLUDE_TINYURDF_CAMERA_H_
Definition camera.h:10
Camera()
Definition camera.cc:3
void setUpdateRate(double ur) override
Definition camera.cc:32
void update() override
void getUpdateRate(double &ur) const override
Definition camera.cc:39
Type
Definition camera.h:12
const char * getTypename() override
Definition camera.cc:49
void getRange(Image< double, 4 > &r) override
Definition camera.cc:54
void getOrigin(double *xyz) const override
Definition camera.cc:16
void setType(Type t_)
Definition camera.cc:24
void setOrigin(std::shared_ptr< Pose > o) override
Definition camera.cc:44
void get(Image< double, 4 > &o) const override
Definition camera.cc:62
void reset() override
Definition camera.cc:11
void print(std::ostream &os) override
Definition camera.cc:66
void setRange(Image< double, 4 > &r) override
Definition camera.cc:58
Definition image.h:11
Base class for sensors.
Definition sensor_base.h:19