viam.components.arm =================== .. py:module:: viam.components.arm Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/viam/components/arm/arm/index /autoapi/viam/components/arm/client/index /autoapi/viam/components/arm/service/index Attributes ---------- .. autoapisummary:: viam.components.arm.KinematicsReturn Classes ------- .. autoapisummary:: viam.components.arm.KinematicsFileFormat viam.components.arm.Mesh viam.components.arm.Pose viam.components.arm.JointPositions viam.components.arm.MoveOptions Package Contents ---------------- .. py:data:: KinematicsReturn .. py:class:: KinematicsFileFormat Bases: :py:obj:`_KinematicsFileFormat` .. py:class:: Mesh(*, content_type: str = ..., mesh: bytes = ..., original_file_source_path_diagnostic: str | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: content_type :type: str Content type of mesh (e.g. ply) .. py:attribute:: mesh :type: bytes Contents of mesh data in binary form defined by content_type .. py:attribute:: original_file_source_path_diagnostic :type: str Path the mesh was loaded from, relative to the kinematics file. Informational on the wire. .. py:method:: HasField(field_name: _HasFieldArgType) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:method:: WhichOneof(oneof_group: _WhichOneofArgType__original_file_source_path_diagnostic) -> _WhichOneofReturnType__original_file_source_path_diagnostic | None Returns the name of the field that is set inside a oneof group. If no field is set, returns None. :param oneof_group: the name of the oneof group to check. :type oneof_group: str :returns: The name of the group that is set, or None. :rtype: str or None :raises ValueError: no group with the given name exists .. py:class:: Pose(*, x: float = ..., y: float = ..., z: float = ..., o_x: float = ..., o_y: float = ..., o_z: float = ..., theta: float = ...) Bases: :py:obj:`google.protobuf.message.Message` Pose is a combination of location and orientation. Location is expressed as distance which is represented by x , y, z coordinates. Orientation is expressed as an orientation vector which is represented by o_x, o_y, o_z and theta. The o_x, o_y, o_z coordinates represent the point on the cartesian unit sphere that the end of the arm is pointing to (with the origin as reference). That unit vector forms an axis around which theta rotates. This means that incrementing / decrementing theta will perform an inline rotation of the end effector. Theta is defined as rotation between two planes: the first being defined by the origin, the point (0,0,1), and the rx, ry, rz point, and the second being defined by the origin, the rx, ry, rz point and the local Z axis. Therefore, if theta is kept at zero as the north/south pole is circled, the Roll will correct itself to remain in-line. .. py:attribute:: x :type: float millimeters from the origin .. py:attribute:: y :type: float millimeters from the origin .. py:attribute:: z :type: float millimeters from the origin .. py:attribute:: o_x :type: float z component of a vector defining axis of rotation .. py:attribute:: o_y :type: float x component of a vector defining axis of rotation .. py:attribute:: o_z :type: float y component of a vector defining axis of rotation .. py:attribute:: theta :type: float degrees .. py:class:: JointPositions(*, values: collections.abc.Iterable[float] | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:method:: values() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[float] A list of joint positions. Rotations values are in degrees, translational values in mm. There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm .. py:class:: MoveOptions(*, max_vel_degs_per_sec: float | None = ..., max_acc_degs_per_sec2: float | None = ..., max_vel_degs_per_sec_joints: collections.abc.Iterable[float] | None = ..., max_acc_degs_per_sec2_joints: collections.abc.Iterable[float] | None = ..., max_tcp_speed: float | None = ...) Bases: :py:obj:`google.protobuf.message.Message` MoveOptions specifies kinematic constraints for an arm motion. All fields are optional ceilings; any combination may be set. Every constraint that is set is respected at every point along the executed trajectory. The limiting constraint may change throughout execution. .. py:attribute:: max_vel_degs_per_sec :type: float Maximum allowable velocity of an arm joint, in degrees per second. The arm driver will move as fast as possible up to the set value. Ignored when max_vel_degs_per_sec_joints is set. .. py:attribute:: max_acc_degs_per_sec2 :type: float Maximum allowable acceleration of an arm joint, in degrees per second squared. The arm driver will accelerate as fast as possible up to the set value. ignored when max_acc_degs_per_sec2_joints is set. .. py:attribute:: max_tcp_speed :type: float Maximum allowable speed of an arm's tool center point in meters per second. The arm driver will move the tool center point as fast as possible up to this set value. .. py:method:: max_vel_degs_per_sec_joints() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[float] Per-joint maximum velocity in degrees per second. The arm driver will move each joint as fast as possible up to its respective set value. .. py:method:: max_acc_degs_per_sec2_joints() -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[float] Per-joint maximum acceleration in degrees per second squared. The arm driver will accelerate each joint as fast as possible up to its respective set value. .. py:method:: HasField(field_name: _HasFieldArgType) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:method:: WhichOneof(oneof_group: _WhichOneofArgType__max_acc_degs_per_sec2) -> _WhichOneofReturnType__max_acc_degs_per_sec2 | None WhichOneof(oneof_group: _WhichOneofArgType__max_tcp_speed) -> _WhichOneofReturnType__max_tcp_speed | None WhichOneof(oneof_group: _WhichOneofArgType__max_vel_degs_per_sec) -> _WhichOneofReturnType__max_vel_degs_per_sec | None Returns the name of the field that is set inside a oneof group. If no field is set, returns None. :param oneof_group: the name of the oneof group to check. :type oneof_group: str :returns: The name of the group that is set, or None. :rtype: str or None :raises ValueError: no group with the given name exists