capella_ros_tools package¶
The capella_ros_tools package.
Submodules¶
capella_ros_tools.data_model module¶
Tool for parsing ROS messages.
- class capella_ros_tools.data_model.ConstantDef(type: TypeDef, name: str, value: str, description: str)¶
Bases:
object
Definition of a constant in a ROS message.
- class capella_ros_tools.data_model.EnumDef(name: str, literals: list[ConstantDef], description: str)¶
Bases:
object
Definition of an enum in a ROS message.
- literals: list[ConstantDef]¶
- class capella_ros_tools.data_model.FieldDef(type: TypeDef, name: str, description: str)¶
Bases:
object
Definition of a field in a ROS message.
- class capella_ros_tools.data_model.MessageDef(name: str, fields: list[FieldDef], enums: list[EnumDef], description: str)¶
Bases:
object
Definition of a ROS message.
- classmethod from_file(file: FilePath | Path, license_header: str | None = None, msg_description_regex: Pattern[str] | None = None) MessageDef ¶
Create message definition from a .msg file.
- class capella_ros_tools.data_model.MessagePkgDef(name: str, messages: list[MessageDef], packages: list[MessagePkgDef])¶
Bases:
object
Definition of a ROS message package.
- classmethod from_msg_folder(pkg_name: str, msg_path: FilePath | Path, license_header: str | None = None, msg_description_regex: Pattern[str] | None = None) MessagePkgDef ¶
Create a message package definition from a folder.
- messages: list[MessageDef]¶
- packages: list[MessagePkgDef]¶
- class capella_ros_tools.data_model.Range(min: str, max: str)¶
Bases:
NamedTuple
Define range of values.
capella_ros_tools.exporter module¶
Tool for exporting a Capella data package to ROS messages.
capella_ros_tools.importer module¶
Tool for importing ROS messages to a Capella data package.