Joints

class pyniryo_nate.models.geometry.Joints(*joints: float)[source]

Bases: UserList[float]

Represents joint positions for a robot.

A list of float values representing the position of each joint in radians. Can optionally include timestamp and velocity information.

Parameters:

joints (float) – Variable number of joint positions (in radians).

Attributes

Methods

append

S.append(value) -- append value to the end of the sequence

clear

copy

count

extend

S.extend(iterable) -- extend sequence by appending elements from the iterable

from_a_transport_model

from_transport_model

index

Raises ValueError if the value is not present.

insert

S.insert(index, value) -- insert value before index

pop

Raise IndexError if list is empty or index is out of range.

remove

S.remove(value) -- remove first occurrence of value.

reverse

S.reverse() -- reverse IN PLACE

sort

to_a_transport_model

to_transport_model

timestamp: int | None = None
velocities: list[float] | None = None
classmethod from_transport_model(model: Joints) → Joints[source]
Parameters:

model (Joints)

Return type:

Joints

to_transport_model() → Joints[source]
Return type:

Joints

classmethod from_a_transport_model(model: Joints) → Joints[source]
Parameters:

model (Joints)

Return type:

Joints

to_a_transport_model() → Joints[source]
Return type:

Joints