1#ifndef CHRONO_ULTRASOUND_BACKEND_H
2#define CHRONO_ULTRASOUND_BACKEND_H
4#include "bitrl/bitrl_config.h"
10#include "chrono/physics/ChSystem.h"
11#include "chrono/physics/ChBody.h"
18namespace sensors::backends
26class CHRONO_UltrasonicBackend final:
public RangeSensorBackendBase
33 static const std::string BACKEND_TYPE;
38 CHRONO_UltrasonicBackend(chrono::ChSystem& sys_ptr,
39 std::shared_ptr<chrono::ChBody> body);
45 std::vector<real_t> read_values();
64 void load_from_json(
const std::string& filename);
70 void set_position(
const chrono::ChVector3d& pos){position_ = pos;}
75 const chrono::ChVector3d& position()
const{
return position_;}
83 chrono::ChSystem* sys_ptr_;
88 std::shared_ptr<chrono::ChBody> body_;
93 chrono::ChVector3d position_;
Definition bitrl_consts.h:14