|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| 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... | |
| 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 | 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 | KeyboardRC |
| The keyboard as a radio transmitter: More... | |
| struct | QuadrotorStyle |
| How a drone of a QuadrotorView looks: the colour of its body and of its trail. More... | |
| class | QuadrotorView |
| A window with quadrotors over a floor of 2 m tiles, with posts to see them move against and a start pad. Each drone is two arms in a cross, a body and four rotors, the front one red, and leaves a trail. The positions and the angles come from dynamics::QuadrotorDynamics, whose world is NED; the window's is z up. More... | |
Functions | |
| void | add_floor_texture (chrono::ChBody &ground, real_t width, real_t height, real_t z, const std::string &texture) |
| Put a picture on the ground: a rectangle of width x height [m] centred on the origin of the world, at height z, with the texture on it. The top left corner of the picture is the corner with the smallest x and the largest y, as for sensors::FloorImage. | |
| void | draw_status_bar (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::string &text) |
| Write text on a light bar along the bottom of the window. Call this between Render() and EndScene(). | |
| void | irr_draw_line (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChVector3d &start, const chrono::ChVector3d &end, const chrono::ChColor &color, real_t thickness) |
| void | irr_draw_label (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::string &text, const chrono::ChVector3d &position, const chrono::ChColor &color) |
| void | irr_draw_frame (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChFrame<> &frame, real_t scale, const std::string &label) |
| void | irr_draw_world_axes (chrono::irrlicht::ChVisualSystemIrrlicht &vis, real_t scale) |
| void bitsim::utils::render::add_floor_texture | ( | chrono::ChBody & | ground, |
| real_t | width, | ||
| real_t | height, | ||
| real_t | z, | ||
| const std::string & | texture ) |
Put a picture on the ground: a rectangle of width x height [m] centred on the origin of the world, at height z, with the texture on it. The top left corner of the picture is the corner with the smallest x and the largest y, as for sensors::FloorImage.
The visual system takes the shapes of the bodies when it is initialised, so call this before ChVisualSystemIrrlicht::Initialize
| void bitsim::utils::render::draw_status_bar | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| const std::string & | text ) |
Write text on a light bar along the bottom of the window. Call this between Render() and EndScene().
| void bitsim::utils::render::irr_draw_frame | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| const chrono::ChFrame<> & | frame, | ||
| real_t | scale = 1.0, | ||
| const std::string & | label = "" ) |
Draw the axes of the given frame with x in red, y in green and z in blue and write the label at the origin of the frame
| void bitsim::utils::render::irr_draw_label | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| const std::string & | text, | ||
| const chrono::ChVector3d & | position, | ||
| const chrono::ChColor & | color = chrono::ChColor(1.0f, 1.0f, 1.0f) ) |
Draw a label at a point given in world coordinates. Unlike chrono::irrlicht::tools::drawLabel3D this does not need the Chrono data directory to be available
| void bitsim::utils::render::irr_draw_line | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| const chrono::ChVector3d & | start, | ||
| const chrono::ChVector3d & | end, | ||
| const chrono::ChColor & | color, | ||
| real_t | thickness = 2.0 ) |
Draw a line in world coordinates. The line is drawn on top of the scene, so that bodies do not hide it. Call this between Render() and EndScene()
| void bitsim::utils::render::irr_draw_world_axes | ( | chrono::irrlicht::ChVisualSystemIrrlicht & | vis, |
| real_t | scale = 1.0 ) |
Draw the global axis on the given ChVisualSystemIrrlicht system