CloudTwin  ROS2 Humble
Digital twin for path and trajectory optimisation
Functions | Variables
test_random_obstacle_core Namespace Reference

Functions

def test_line_validation_rejects_a_wall (tmp_path)
 
def test_unknown_and_clearance_cells_are_rejected (tmp_path)
 
def test_world_cell_round_trip_supports_rotated_origins (tmp_path)
 
def write_map (tmp_path, pixels, resolution=0.1, origin=None)
 

Variables

string SCRIPTS_DIR = Path(__file__).resolve().parents[1] / "scripts"
 

Detailed Description

Tests for map-aware controlled obstacle geometry.

Function Documentation

◆ test_line_validation_rejects_a_wall()

def test_random_obstacle_core.test_line_validation_rejects_a_wall (   tmp_path)

◆ test_unknown_and_clearance_cells_are_rejected()

def test_random_obstacle_core.test_unknown_and_clearance_cells_are_rejected (   tmp_path)

◆ test_world_cell_round_trip_supports_rotated_origins()

def test_random_obstacle_core.test_world_cell_round_trip_supports_rotated_origins (   tmp_path)

◆ write_map()

def test_random_obstacle_core.write_map (   tmp_path,
  pixels,
  resolution = 0.1,
  origin = None 
)
Write a minimal ROS map and return its YAML path.

Variable Documentation

◆ SCRIPTS_DIR

string test_random_obstacle_core.SCRIPTS_DIR = Path(__file__).resolve().parents[1] / "scripts"