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

Namespaces

namespace  maths

Functions

std::filesystem::path data_dir ()
 The directory that holds the robot, sensor and world definitions.
std::filesystem::path build_robot_file_path (const std::string filename)

Variables

const uint_t INVALID_ID = static_cast<uint_t>(-1)
 Invalid id.
const std::string INVALID_STR = std::string("INVALID")
 Invalid string.
const real_t TOLERANCE = 1.0e-8
 Tolerance used around the library.
const std::string ROBOTS_DIR = (data_dir() / "robots").string()
 Path to robots definitions.
const std::string SENSORS_DIR = (data_dir() / "sensors").string()
 Path to sensors definitions.

Function Documentation

◆ build_robot_file_path()

std::filesystem::path bitsim::consts::build_robot_file_path ( const std::string filename)
inline

Retruns an std::filesystem::path for the robot filename

Parameters
filenameThe filename of the robot
Returns
An std::filesystem::path

◆ data_dir()

std::filesystem::path bitsim::consts::data_dir ( )

The directory that holds the robot, sensor and world definitions.

It is, in this order of preference:

  • the directory in the environment variable BITSIM_DATA_DIR, if it is set,
  • the bitsim source tree the library was built from, if it still exists, so that a build uses the files you edit,
  • the directory the files are installed in, share/bitsim under the install prefix.

Variable Documentation

◆ INVALID_ID

const uint_t bitsim::consts::INVALID_ID = static_cast<uint_t>(-1)
inline

Invalid id.

◆ INVALID_STR

const std::string bitsim::consts::INVALID_STR = std::string("INVALID")
inline

Invalid string.

◆ ROBOTS_DIR

const std::string bitsim::consts::ROBOTS_DIR = (data_dir() / "robots").string()
inline

Path to robots definitions.

◆ SENSORS_DIR

const std::string bitsim::consts::SENSORS_DIR = (data_dir() / "sensors").string()
inline

Path to sensors definitions.

◆ TOLERANCE

const real_t bitsim::consts::TOLERANCE = 1.0e-8
inline

Tolerance used around the library.