|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| struct | Pose |
| class | TrackModel |
| struct | TowardsTheLine |
| struct | Candidate |
| class | World |
| class | Display |
| struct | Options |
| struct | MCTSConfig |
| The configuration of MCTSSolver. More... | |
| class | MCTSSolver |
| Monte Carlo tree search, with UCB to pick the children (UCT). 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... | |
| class | ContactCounter |
| Counts the contacts that touch any of a set of bodies, such as the obstacles a robot should not hit. More... | |
| class | FloorImage |
| An image of the floor, centred on the world origin. More... | |
| class | 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 | 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 | 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... | |
Typedefs | |
| using | Command = bitsim::control::DiffDriveCommand |
| using | Point = std::array<real_t, 2> |
| using | real_t |
| real_t | |
| using | uint_t |
| uint_t | |
Functions | |
| real_t | angle_around_track (real_t x, real_t y) |
| real_t | distance_to_box (const Point &box, real_t x, real_t y) |
| real_t | track_direction (real_t x, real_t y) |
| template<typename Solver> | |
| std::vector< Candidate > | candidates (const Solver &solver, const TrackModel &model) |
| FloorImage | draw_floor () |
| Options | parse (int argc, char **argv) |
| int | run (const Options &options) |
| using mcts_line_following::Point = std::array<real_t, 2> |
| using bitsim::real_t |
| using bitsim::uint_t |
| 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 | ) |
| const real_t mcts_line_following::CHASSIS_AHEAD = 0.1 |
| const real_t mcts_line_following::CLEARANCE = 0.05 |
| const std::array<const char *, 5> mcts_line_following::COMMAND_NAMES |
| const std::array<Command, 5> mcts_line_following::COMMANDS |
| const real_t mcts_line_following::DECISION_PERIOD = 0.2 |
| const real_t mcts_line_following::DETOUR_NEAR = 1.0 |
| const real_t mcts_line_following::DETOUR_OFFSET = 0.6 |
| const real_t mcts_line_following::FLOOR_HEIGHT = 4.6 |
| const real_t mcts_line_following::FLOOR_WIDTH = 5.6 |
| const real_t mcts_line_following::FOLLOW_AHEAD = 1.5 |
| const real_t mcts_line_following::FOLLOW_BEHIND = 2.6 |
| const real_t mcts_line_following::FOLLOW_HEIGHT = 2.4 |
| const real_t mcts_line_following::HIT_COST = 10.0 |
| const real_t mcts_line_following::LINE_COST = 0.5 |
| const real_t mcts_line_following::LINE_WIDTH = 0.05 |
| const real_t mcts_line_following::METRES_PER_PIXEL = 0.005 |
| const uint_t mcts_line_following::MODEL_SUBSTEPS = 4 |
| const real_t mcts_line_following::OBSTACLE_HEIGHT = 0.4 |
| const real_t mcts_line_following::OBSTACLE_SIZE = 0.3 |
| const std::vector<Point> mcts_line_following::OBSTACLES {{0.0, -TRACK_HALF_WIDTH}, {-0.2, TRACK_HALF_WIDTH}} |
| const real_t mcts_line_following::PI = bitsim::consts::maths::PI |
| const real_t mcts_line_following::PRINT_PERIOD = 2.0 |
| const real_t mcts_line_following::RECORD_RATE = 10.0 |
| const real_t mcts_line_following::RENDER_RATE = 30.0 |
| const real_t mcts_line_following::ROBOT_RADIUS = 0.3 |
| const real_t mcts_line_following::ROLLOUT_APPROACH = 2.0 |
| const real_t mcts_line_following::ROLLOUT_GAIN = 2.0 |
| const real_t mcts_line_following::ROLLOUT_RANDOM = 0.2 |
| const MCTSConfig mcts_line_following::SEARCH |
| const Point mcts_line_following::START {-1.3, -TRACK_HALF_WIDTH} |
| const real_t mcts_line_following::STEP_SIZE = 0.01 |
| const real_t mcts_line_following::TIME_LIMIT = 150.0 |
| const RoundedRectangle mcts_line_following::TRACK(TRACK_HALF_LENGTH, TRACK_HALF_WIDTH, TRACK_CORNER_RADIUS) | ( | TRACK_HALF_LENGTH | , |
| TRACK_HALF_WIDTH | , | ||
| TRACK_CORNER_RADIUS | ) |
| const real_t mcts_line_following::TRACK_CORNER_RADIUS = 0.7 |
| const real_t mcts_line_following::TRACK_HALF_LENGTH = 2.2 |
| const real_t mcts_line_following::TRACK_HALF_WIDTH = 1.4 |
| const std::string mcts_line_following::WINDOW_TITLE = "Line following with Monte Carlo tree search" |