cars_mesh.state_machine

Class associated to CARS-MESH state machine

Module Contents

Classes

CarsMeshMachine

CARS-MESH state machine

class cars_mesh.state_machine.CarsMeshMachine(mesh_data: cars_mesh.tools.handlers.Mesh, initial_state: str = 'initial_pcd')[source]

Bases: transitions.Machine

CARS-MESH state machine

run(step: dict, cfg: dict) None[source]

Run CARS-MESH step by triggering the corresponding machine transition

Parameters:
  • step (str) – Name of the step to trigger

  • cfg (dict) – Configuration dictionary

filter_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Filter the point cloud from outliers

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

denoise_pcd_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Denoise the point cloud

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

mesh_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Mesh the point cloud

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

simplify_mesh_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Simplify the mesh to reduce the number of faces

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

denoise_mesh_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Denoise the mesh

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

texture_run(step: dict, cfg: dict, check_mode: bool = False) None[source]

Texture the mesh

Parameters:
  • step (dict) – Parameters of the step to run

  • cfg (dict) – Configuration dictionary

  • check_mode (bool (default=False)) – Option to run the transition checker

check_transitions(cfg: dict) None[source]

Browse user defined steps and pass them just to check they are valid steps in the state machine. No action is done.

Parameters:

cfg (dict) – Configuration dictionary