bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
denavit_hartenberg.h
Go to the documentation of this file.
1#ifndef BITSIM_KINEMATICS_DENAVIT_HARTENBERG_H
2#define BITSIM_KINEMATICS_DENAVIT_HARTENBERG_H
3
4#include "bitsim/bitsim_config.h"
5
6#ifdef BITSIM_CHRONO
7
10
11#include <chrono/core/ChFrame.h>
12
13#include <vector>
14
15namespace bitsim
16{
17namespace kinematics
18{
19
25struct DHRow
26{
28 real_t d{0.0};
29 real_t a{0.0};
31};
32
37chrono::ChFrame<> dh_frame(const DHRow &row);
38
43chrono::ChFrame<> dh_fk(const std::vector<DHRow> &table);
44
50std::vector<DHRow> spatial_dh_table(const SpatialArm &arm, const SpatialJoints &q);
51
52} // namespace kinematics
53} // namespace bitsim
54
55#endif // BITSIM_CHRONO
56#endif // BITSIM_KINEMATICS_DENAVIT_HARTENBERG_H
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
std::vector< DHRow > spatial_dh_table(const SpatialArm &arm, const SpatialJoints &q)
The Denavit-Hartenberg table of a SpatialArm at joint angles q. dh_fk of it is spatial_fk.
Definition kinematics.cpp:252
std::array< real_t, 3 > SpatialJoints
The angles of the three joints of a SpatialArm [rad].
Definition spatial_arm.h:41
chrono::ChFrame dh_frame(const DHRow &row)
Definition kinematics.cpp:237
chrono::ChFrame dh_fk(const std::vector< DHRow > &table)
The product of the frames of all the rows: the pose of the last frame in the first.
Definition kinematics.cpp:242
Definition denavit_hartenberg.h:18
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20
One row of a Denavit-Hartenberg table: the pose of a joint frame in the one before it is .
Definition denavit_hartenberg.h:26
real_t d
offset along z [m]
Definition denavit_hartenberg.h:28
real_t alpha
rotation about the new x [rad]
Definition denavit_hartenberg.h:30
real_t theta
rotation about z [rad]; the joint angle of a revolute joint
Definition denavit_hartenberg.h:27
real_t a
offset along the new x [m]
Definition denavit_hartenberg.h:29