|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitrl/base/bitrl_types.h"#include "bitrl/rl/algorithms/mc/mc_tree_search_solver.h"#include "bitsim/bitsim_config.h"#include "bitsim/bitsim_consts.h"#include "bitsim/control/infrared_line_follower.h"#include "bitsim/rigid_bodies/chrono_robots/contact_counter.h"#include "bitsim/rigid_bodies/chrono_robots/diff_drive_robot.h"#include "bitsim/sensors/downward_camera.h"#include "bitsim/trajectory/rounded_rectangle.h"#include "bitsim/utils/render/irrlicht_scene.h"#include "bitsim/utils/render/irrlicht_utils.h"#include <chrono/physics/ChBodyEasy.h>#include <chrono/physics/ChContactMaterialNSC.h>#include <chrono/physics/ChSystemNSC.h>#include <chrono_irrlicht/ChVisualSystemIrrlicht.h>#include <algorithm>#include <array>#include <chrono>#include <cmath>#include <cstdlib>#include <filesystem>#include <iomanip>#include <iostream>#include <limits>#include <memory>#include <optional>#include <random>#include <sstream>#include <stdexcept>#include <string>#include <thread>#include <vector>
Classes | |
| struct | mcts_line_following::Pose |
| class | mcts_line_following::TrackModel |
| struct | mcts_line_following::TrackModel::TimeStep |
| struct | mcts_line_following::TowardsTheLine |
| struct | mcts_line_following::Candidate |
| class | mcts_line_following::World |
| class | mcts_line_following::Display |
| struct | mcts_line_following::Options |
| struct | mcts_line_following::MCTSConfig |
| The configuration of MCTSSolver. More... | |
| class | mcts_line_following::MCTSSolver< EnvTp, RolloutPolicy > |
| Monte Carlo tree search, with UCB to pick the children (UCT). More... | |
| class | mcts_line_following::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... | |
| class | mcts_line_following::ContactCounter |
| Counts the contacts that touch any of a set of bodies, such as the obstacles a robot should not hit. More... | |
| class | mcts_line_following::FloorImage |
| An image of the floor, centred on the world origin. More... | |
| class | mcts_line_following::RoundedRectangle |
| A closed track in the plane: a rectangle centred on the origin with its sides along x and y, and its corners rounded with quarter circles. More... | |
| class | mcts_line_following::FrameRecorder |
| Writes the window to dir/frame_00000.png, frame_00001.png, ..., rate times a second of simulation, to be put together into a movie. With an empty dir it writes nothing. More... | |
| class | mcts_line_following::Trail |
| A path drawn as a line: in the plane, just above the floor, where a robot has been or where it thinks it has been; or in space, where something has flown. More... | |
Namespaces | |
| namespace | mcts_line_following |
Typedefs | |
| using | mcts_line_following::Command = bitsim::control::DiffDriveCommand |
| using | mcts_line_following::Point = std::array<real_t, 2> |
| using | mcts_line_following::real_t |
| real_t | |
| using | mcts_line_following::uint_t |
| uint_t | |
Functions | |
| real_t | mcts_line_following::angle_around_track (real_t x, real_t y) |
| real_t | mcts_line_following::distance_to_box (const Point &box, real_t x, real_t y) |
| real_t | mcts_line_following::track_direction (real_t x, real_t y) |
| template<typename Solver> | |
| std::vector< Candidate > | mcts_line_following::candidates (const Solver &solver, const TrackModel &model) |
| FloorImage | mcts_line_following::draw_floor () |
| Options | mcts_line_following::parse (int argc, char **argv) |
| int | mcts_line_following::run (const Options &options) |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv ) |