bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim Namespace Reference

Namespaces

namespace  actuators
namespace  consts
namespace  boards
namespace  control
 Controllers: PID controllers, line following, a quadrotor flight controller, a fixed wing autopilot, linear quadratic regulators and model predictive control.
namespace  sensors
namespace  cosim
namespace  distributed
namespace  dynamics
 Models of how things move: wheeled robots, a bicycle, a quadrotor and a fixed wing aircraft, with the trim and linearisation of the aircraft.
namespace  estimation
namespace  geometry
namespace  kinematics
namespace  maths
namespace  network
namespace  planning
namespace  rb
namespace  systems
namespace  trajectory
namespace  utils
namespace  log

Classes

struct  IntegralRange
 A range of integer values in [s, e]. More...
struct  RealRange
 A range of double precision floating point values. More...
struct  Null
 Null placeholder. More...

Typedefs

using real_t = double
 real_t
using float_t = float
 float
using int_t = int
 integer type
using lint_t = long int
 long int type
using uint_t = std::size_t
 uint_t
using index_t = Eigen::Index
 The type Eigen indexes and sizes matrices and vectors with.
template<typename T>
using DynMat = Eigen::MatrixX<T>
 Dynamically sized matrix to use around the library.
using RealMat = DynMat<real_t>
 Dynamically sized matrix of type double.
template<typename T, uint_t N>
using SquareMat = Eigen::Matrix<T, N, N>
 Square matrix with elements of type T.
template<typename T, uint_t N, uint_t M>
using Mat = Eigen::Matrix<T, N, M>
 General fixed size matrix.
template<typename T, uint_t N, uint_t M>
using UnalignedMat
 General fixed size matrix that Eigen does not align. Use it for a fixed size member of a class that is allocated with new or kept in a std::vector, where the alignment Eigen asks for is not guaranteed.
using RealMat2d = Eigen::Matrix2<real_t>
 2×2 matrix of type double.
using RealMat3d = Eigen::Matrix3<real_t>
 3×3 matrix of type double.
using RealMat4d = Eigen::Matrix4<real_t>
 4×4 matrix of type double.
using FloatMat3d = Eigen::Matrix3<float_t>
 3×3 matrix of type float.
template<typename T>
using DynVec = Eigen::RowVectorX<T>
 Dynamically sized row vector.
using FloatVec = DynVec<float_t>
 single precision floating point vector
using RealVec = DynVec<real_t>
 double precision floating point vector
template<typename T>
using ColVec = Eigen::VectorX<T>
 Column vector. Some maths operations are easier using column vectors rather than DynVec.
using RealColVec = ColVec<real_t>
 Dynamically sized column vector.
using FoatColVec = ColVec<float_t>
 Dynamically sized column vector.
using RealColVec2d = Eigen::Vector2d
 2D column vector
using RealColVec3d = Eigen::Vector3d
 3D column vector
using RealColVec4d = Eigen::Vector4d
 4D column vector
using FloatColVec3d = Eigen::Vector3f
 3D column vector

Enumerations

enum class  DeviceType { INVALID_TYPE = 0 , CPU = 1 , GPU = 2 }
 Enumeration of various device types. More...

Functions

std::ostream & operator<< (std::ostream &out, const std::chrono::system_clock::time_point &tp)
template<typename T>
std::ostream & operator<< (std::ostream &out, const std::vector< T > &obs)
std::ostream & operator<< (std::ostream &out, const Null &)
 Write "null" for the Null placeholder. It is in namespace bitsim, with Null, so that argument-dependent lookup finds it.

Typedef Documentation

◆ ColVec

template<typename T>
using bitsim::ColVec = Eigen::VectorX<T>

Column vector. Some maths operations are easier using column vectors rather than DynVec.

◆ DynMat

template<typename T>
using bitsim::DynMat = Eigen::MatrixX<T>

Dynamically sized matrix to use around the library.

◆ DynVec

template<typename T>
using bitsim::DynVec = Eigen::RowVectorX<T>

Dynamically sized row vector.

◆ float_t

using bitsim::float_t = float

float

◆ FloatColVec3d

using bitsim::FloatColVec3d = Eigen::Vector3f

3D column vector

◆ FloatMat3d

using bitsim::FloatMat3d = Eigen::Matrix3<float_t>

3×3 matrix of type float.

◆ FloatVec

single precision floating point vector

◆ FoatColVec

Dynamically sized column vector.

◆ index_t

using bitsim::index_t = Eigen::Index

The type Eigen indexes and sizes matrices and vectors with.

◆ int_t

using bitsim::int_t = int

integer type

◆ lint_t

using bitsim::lint_t = long int

long int type

◆ Mat

template<typename T, uint_t N, uint_t M>
using bitsim::Mat = Eigen::Matrix<T, N, M>

General fixed size matrix.

◆ real_t

using bitsim::real_t = double

◆ RealColVec

Dynamically sized column vector.

◆ RealColVec2d

using bitsim::RealColVec2d = Eigen::Vector2d

2D column vector

◆ RealColVec3d

using bitsim::RealColVec3d = Eigen::Vector3d

3D column vector

◆ RealColVec4d

using bitsim::RealColVec4d = Eigen::Vector4d

4D column vector

◆ RealMat

Dynamically sized matrix of type double.

◆ RealMat2d

using bitsim::RealMat2d = Eigen::Matrix2<real_t>

2×2 matrix of type double.

◆ RealMat3d

using bitsim::RealMat3d = Eigen::Matrix3<real_t>

3×3 matrix of type double.

◆ RealMat4d

using bitsim::RealMat4d = Eigen::Matrix4<real_t>

4×4 matrix of type double.

◆ RealVec

double precision floating point vector

◆ SquareMat

template<typename T, uint_t N>
using bitsim::SquareMat = Eigen::Matrix<T, N, N>

Square matrix with elements of type T.

◆ uint_t

using bitsim::uint_t = std::size_t

◆ UnalignedMat

template<typename T, uint_t N, uint_t M>
using bitsim::UnalignedMat
Initial value:
Eigen::Matrix<T, N, M,
Eigen::DontAlign | (N == 1 && M != 1 ? Eigen::RowMajor : Eigen::ColMajor)>

General fixed size matrix that Eigen does not align. Use it for a fixed size member of a class that is allocated with new or kept in a std::vector, where the alignment Eigen asks for is not guaranteed.

Enumeration Type Documentation

◆ DeviceType

enum class bitsim::DeviceType
strong

Enumeration of various device types.

Enumerator
INVALID_TYPE 
CPU 
GPU 

Function Documentation

◆ operator<<() [1/3]

std::ostream & bitsim::operator<< ( std::ostream & out,
const Null &  )

Write "null" for the Null placeholder. It is in namespace bitsim, with Null, so that argument-dependent lookup finds it.

◆ operator<<() [2/3]

std::ostream & bitsim::operator<< ( std::ostream & out,
const std::chrono::system_clock::time_point & tp )
inline

◆ operator<<() [3/3]

template<typename T>
std::ostream & bitsim::operator<< ( std::ostream & out,
const std::vector< T > & obs )
Template Parameters
TThe type of the value to print
Parameters
outThe stream to write on
obsThe values to print on out
Returns
Read/write reference to the stream