|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| class | Driver |
| class | World |
| class | Display |
| struct | Options |
| class | InfraredLineFollower |
| Follow a dark line with a row of infrared elements. 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 | InfraredSensor |
| An array of infrared reflectance elements that looks at the floor, to tell its colour: light paper or a dark line. More... | |
| class | UltrasonicSensor |
| Class for modelling ultrasonic sensors. 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 | InsetCamera |
| A camera on a robot whose view is drawn in the top left corner of the window. It only shows the scene; mouse and keyboard still move the main camera. 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 | |
| FloorImage | draw_floor () |
| std::string | to_string (Driver::State state) |
| Options | parse (int argc, char **argv) |
| int | run (const Options &options) |
| using line_following_infrared_sonar::Point = std::array<real_t, 2> |
| using bitsim::real_t |
| using bitsim::uint_t |
| FloorImage line_following_infrared_sonar::draw_floor | ( | ) |
| Options line_following_infrared_sonar::parse | ( | int | argc, |
| char ** | argv ) |
| int line_following_infrared_sonar::run | ( | const Options & | options | ) |
| std::string line_following_infrared_sonar::to_string | ( | Driver::State | state | ) |
| const int line_following_infrared_sonar::CAMERA_HEIGHT = 216 |
| const chrono::ChVector3d line_following_infrared_sonar::CAMERA_POSITION {0.26, 0.0, 0.07} |
| const int line_following_infrared_sonar::CAMERA_WIDTH = 384 |
| const real_t line_following_infrared_sonar::CRUISE_SPEED = 0.3 |
| const real_t line_following_infrared_sonar::DETOUR_RADIUS = 1.2 |
| const real_t line_following_infrared_sonar::DETOUR_SPEED = 0.25 |
| const real_t line_following_infrared_sonar::FLOOR_HEIGHT = 4.6 |
| const real_t line_following_infrared_sonar::FLOOR_WIDTH = 5.6 |
| const InfraredLineFollower::Parameters line_following_infrared_sonar::FOLLOW_LINE |
| const uchar line_following_infrared_sonar::INK = 25 |
| const real_t line_following_infrared_sonar::LINE_TURN_RATE = 1.6 |
| const real_t line_following_infrared_sonar::LINE_WIDTH = 0.05 |
| const real_t line_following_infrared_sonar::LOST_TIME = 3.0 |
| const real_t line_following_infrared_sonar::METRES_PER_PIXEL = 0.005 |
| const real_t line_following_infrared_sonar::OBSTACLE_HEIGHT = 0.4 |
| const real_t line_following_infrared_sonar::OBSTACLE_SIZE = 0.3 |
| const std::vector<Point> line_following_infrared_sonar::OBSTACLES {{0.0, -TRACK_HALF_WIDTH}, {-0.2, TRACK_HALF_WIDTH}} |
| const uchar line_following_infrared_sonar::PAPER = 235 |
| const real_t line_following_infrared_sonar::PI = bitsim::consts::maths::PI |
| const real_t line_following_infrared_sonar::PIVOT_RATE = 1.0 |
| const real_t line_following_infrared_sonar::PRINT_PERIOD = 1.0 |
| const real_t line_following_infrared_sonar::RECORD_RATE = 10.0 |
| const real_t line_following_infrared_sonar::RENDER_RATE = 30.0 |
| const std::string line_following_infrared_sonar::ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json" |
| const real_t line_following_infrared_sonar::SEARCH_TURN_RATE = 0.8 |
| const Point line_following_infrared_sonar::START {-1.3, -TRACK_HALF_WIDTH} |
| const real_t line_following_infrared_sonar::STEP_SIZE = 0.01 |
| const real_t line_following_infrared_sonar::STOP_DISTANCE = 0.5 |
| const real_t line_following_infrared_sonar::TIME_LIMIT = 150.0 |
| const RoundedRectangle line_following_infrared_sonar::TRACK(TRACK_HALF_LENGTH, TRACK_HALF_WIDTH, TRACK_CORNER_RADIUS) | ( | TRACK_HALF_LENGTH | , |
| TRACK_HALF_WIDTH | , | ||
| TRACK_CORNER_RADIUS | ) |
| const real_t line_following_infrared_sonar::TRACK_CORNER_RADIUS = 0.7 |
| const real_t line_following_infrared_sonar::TRACK_HALF_LENGTH = 2.2 |
| const real_t line_following_infrared_sonar::TRACK_HALF_WIDTH = 1.4 |
| const std::string line_following_infrared_sonar::WINDOW_TITLE = "Line following and obstacle avoidance" |