Function log_maze_tube

Source
pub fn log_maze_tube(
    rec: &RecordingStream,
    maze: &Maze,
) -> Result<(), SimulationError>
Expand description

Log the maze tube to the rerun recording stream

§Arguments

  • rec - The rerun::RecordingStream instance
  • maze - The maze instance

§Errors

  • If the data cannot be logged to the recording stream

§Example

use peng_quad::{Maze, log_maze_tube};
use rerun::RecordingStreamBuilder;
let rec = rerun::RecordingStreamBuilder::new("peng").spawn().unwrap();
let mut maze = Maze::new([-1.0, -1.0, -1.0], [1.0, 1.0, 1.0], 5, [0.1, 0.1, 0.1], [0.1, 0.5]);
log_maze_tube(&rec, &maze).unwrap();