RobotSemantics

class compas_fab.robots.RobotSemantics[source]

Bases: Data

Represents semantic information of a robot.

The semantic model is based on the Semantic Robot Description Format (SRDF).

References

Methods

from_srdf_file

Create an instance of semantics based on an SRDF file path or file-like object.

from_srdf_string

Create an instance of semantics based on an SRDF string.

from_xml

Create an instance of semantics based on an XML object.

get_all_configurable_joints

get_base_link_name

get_configurable_joint_names

get_configurable_joints

get_end_effector_link_name

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.