pitasc.model

class pitasc.model.Model

The standard model interface.

WIP!

Maybe refactor to “extension interfaces” (cf. POSA2) in the future.

command(command)

Push a command to the stack (blocking) and returns the command

create_ros_project(package_name, file_name, protoype_package_name, protoype_file_name, save_to_file=True)

Create a new project based on a prototype.

find_parameter(path)
get_app_name_or_default(app_name: str | None = None)
get_app_names()
get_parameter(runtime_id)
ignore_meta(ignore_meta: bool)
import_file(file_path)

Loads a file and appends the content to root

import_ros_file(package, file_name)

Loads a file that’s in a ROS package

redo()
reset_tmp_parameters()
save()
save_as(file_name, package_name=None)

Save project under a given file name, which is relative to the given package_name. If no package_name is given, file_name can be an absolute path or relative, which is interpret relative to the current working directory.

set_tmp_parameters(app_name, parameters)
undo()