|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| struct | Segment |
| class | Odometry |
| class | World |
| class | DCMotor |
| A DC motor with an encoder, run in speed control. The application sets the target speed of the output shaft and reads back its angle and speed. The backend decides what the motor is: More... | |
| class | DCArduinoBoardImpl |
| An Arduino that drives DC motors with encoders and talks over MQTT. More... | |
| class | CHRONO_DiffDriveRobot |
| A differential-drive robot in Chrono: a chassis, two driven wheels and a ball caster. Each driven wheel has an actuators::DCMotor. More... | |
Typedefs | |
| using | Clock = bitsim::utils::WallClock |
| using | real_t |
| real_t | |
| using | uint_t |
| uint_t | |
Functions | |
| std::vector< Segment > | square_plan () |
| real_t | plan_duration (const std::vector< Segment > &plan) |
| const Segment & | segment_at (const std::vector< Segment > &plan, real_t t, bool repeat) |
| nlohmann::json | read_robot_file () |
| real_t | robot_wheel_radius () |
| bitsim::actuators::backends::DCMotorParameters | robot_motor_parameters () |
| void | run_fake_board (const std::string &broker) |
| std::shared_ptr< DCArduinoBoardImpl > | connect_board (const std::string &broker) |
| void | print_row (const World &world, const Segment &segment) |
| void | print_pose (const std::string &label, real_t x, real_t y, real_t theta) |
| void | run (std::shared_ptr< DCArduinoBoardImpl > board) |
| void | draw_path (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::vector< ChVector3d > &path, const chrono::ChColor &color, real_t width) |
| void | render (std::shared_ptr< DCArduinoBoardImpl > board) |
| real_t | seconds_between (WallClock::time_point from, WallClock::time_point to) |
| The seconds from one time point to another. | |
| real_t | clean (real_t x, real_t zero=5.0e-4) |
| x, or 0 when \(|x| <\) zero | |
Variables | |
| const real_t | PI = bitsim::consts::maths::PI |
| const real_t | DEG = PI / 180.0 |
| const real_t | STEP_SIZE = 0.01 |
| const std::string | ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json" |
| const std::string | COMMAND_TOPIC = "bitsim/dc_board/command" |
| const std::string | STATE_TOPIC = "bitsim/dc_board/state" |
| const real_t | NETWORK_PERIOD = 0.02 |
| const real_t | OBSERVER_BANDWIDTH = 10.0 |
| using bitsim::real_t |
| using bitsim::uint_t |
| real_t bitsim::utils::io::clean | ( | real_t | x, |
| real_t | zero = 5.0e-4 ) |
x, or 0 when \(|x| <\) zero
| std::shared_ptr< DCArduinoBoardImpl > real_dc_motors::connect_board | ( | const std::string & | broker | ) |
| void real_dc_motors::draw_path | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| const std::vector< ChVector3d > & | path, | ||
| const chrono::ChColor & | color, | ||
| real_t | width ) |
| nlohmann::json real_dc_motors::read_robot_file | ( | ) |
| void real_dc_motors::render | ( | std::shared_ptr< DCArduinoBoardImpl > | board | ) |
| bitsim::actuators::backends::DCMotorParameters real_dc_motors::robot_motor_parameters | ( | ) |
| real_t real_dc_motors::robot_wheel_radius | ( | ) |
| void real_dc_motors::run | ( | std::shared_ptr< DCArduinoBoardImpl > | board | ) |
| void real_dc_motors::run_fake_board | ( | const std::string & | broker | ) |
|
inline |
The seconds from one time point to another.
| const Segment & real_dc_motors::segment_at | ( | const std::vector< Segment > & | plan, |
| real_t | t, | ||
| bool | repeat ) |
| std::vector< Segment > real_dc_motors::square_plan | ( | ) |
| const std::string real_dc_motors::COMMAND_TOPIC = "bitsim/dc_board/command" |
| const real_t real_dc_motors::NETWORK_PERIOD = 0.02 |
| const real_t real_dc_motors::OBSERVER_BANDWIDTH = 10.0 |
| const real_t real_dc_motors::PI = bitsim::consts::maths::PI |
| const std::string real_dc_motors::ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json" |
| const std::string real_dc_motors::STATE_TOPIC = "bitsim/dc_board/state" |
| const real_t real_dc_motors::STEP_SIZE = 0.01 |