Joint.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ostream>
4 #include <memory>
5 #include <cstdint>
6 
7 namespace quori_controller
8 {
9  struct Joint
10  {
11  Joint();
12  Joint(const std::string &name);
13 
14  typedef std::shared_ptr<const Joint> ConstPtr;
15  typedef std::shared_ptr<Joint> Ptr;
16 
17  enum class Mode : std::uint8_t
18  {
19  Position,
20  Velocity
21  };
22 
23  std::string name;
24 
25  double command;
26  double position;
27  double velocity;
28  double effort;
29 
31  };
32 }
33 
34 std::ostream &operator <<(std::ostream &o, const quori_controller::Joint &joint);
35 std::ostream &operator <<(std::ostream &o, const quori_controller::Joint::Ptr &joint);
36 std::ostream &operator <<(std::ostream &o, const quori_controller::Joint::ConstPtr &joint);
quori_controller::Joint::Joint
Joint()
Definition: Joint.cpp:16
quori_controller::Joint::command
double command
Definition: Joint.hpp:25
quori_controller::Joint::position
double position
Definition: Joint.hpp:26
quori_controller
Definition: Csv.hpp:10
operator<<
std::ostream & operator<<(std::ostream &o, const quori_controller::Joint &joint)
Definition: Joint.cpp:37
quori_controller::Joint::Mode::Position
@ Position
quori_controller::Joint::mode
Mode mode
Definition: Joint.hpp:30
quori_controller::Joint::Mode::Velocity
@ Velocity
quori_controller::Joint::ConstPtr
std::shared_ptr< const Joint > ConstPtr
Definition: Joint.hpp:14
quori_controller::Joint::effort
double effort
Definition: Joint.hpp:28
quori_controller::Joint::Mode
Mode
Definition: Joint.hpp:17
quori_controller::Joint::velocity
double velocity
Definition: Joint.hpp:27
quori_controller::Joint::name
std::string name
Definition: Joint.hpp:23
quori_controller::Joint::Ptr
std::shared_ptr< Joint > Ptr
Definition: Joint.hpp:15
quori_controller::Joint
Definition: Joint.hpp:9


quori_controller
Author(s):
autogenerated on Wed Mar 2 2022 00:53:16