bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
diff_drive_robot_plates.h
Go to the documentation of this file.
1#ifndef DIFF_DRIVE_ROBOT_PLATES_H
2#define DIFF_DRIVE_ROBOT_PLATES_H
3
4#include "bitrl/bitrl_config.h"
5
6#ifdef BITRL_CHRONO
7
8#include <string>
9#include <memory>
10
11#include "chrono/physics/ChSystem.h"
12
14
15namespace bitrl
16{
17namespace rb::bitrl_chrono
18{
19
29class CHRONO_DiffDriveRobot_BottomPlate : public CHRONO_DiffDriveRobot_Part {
30 public:
31 CHRONO_DiffDriveRobot_BottomPlate(std::shared_ptr<chrono::ChContactMaterial> mat,
32 chrono::ChSystem* system,
33 const chrono::ChVector3d& body_pos,
34 const chrono::ChQuaternion<>& body_rot,
35 std::shared_ptr<chrono::ChBodyAuxRef> chassis);
36 virtual ~CHRONO_DiffDriveRobot_BottomPlate()=default;
37
39 virtual void init() override;
40
41 private:
43 void translate(const chrono::ChVector3d& shift);
44
45};
46
47
57class CHRONO_DiffDriveRobot_MiddlePlate : public CHRONO_DiffDriveRobot_Part {
58 public:
59 CHRONO_DiffDriveRobot_MiddlePlate(
60 std::shared_ptr<chrono::ChContactMaterial> mat,
61 chrono::ChSystem* system,
62 const chrono::ChVector3d& body_pos,
63 const chrono::ChQuaternion<>& body_rot,
64 std::shared_ptr<chrono::ChBodyAuxRef> chassis);
65
66 virtual ~CHRONO_DiffDriveRobot_MiddlePlate()=default;
67
69 virtual void init()override;
70
71
72 private:
74 void translate(const chrono::ChVector3d& shift);
75
76};
77
78
88class CHRONO_DiffDriveRobot_TopPlate : public CHRONO_DiffDriveRobot_Part {
89 public:
90
92 CHRONO_DiffDriveRobot_TopPlate(std::shared_ptr<chrono::ChContactMaterial> mat,
93 chrono::ChSystem* system,
94 const chrono::ChVector3d& body_pos,
95 const chrono::ChQuaternion<>& body_rot,
96 std::shared_ptr<chrono::ChBodyAuxRef> chassis);
97 virtual ~CHRONO_DiffDriveRobot_TopPlate() {}
98
100 virtual void init()override;
101
102 private:
104 void translate(const chrono::ChVector3d& shift);
105
106};
107
108}
109}
110#endif
111
112#endif //DIFF_DRIVE_ROBOT_PLATES_H
Definition bitrl_consts.h:14