pam_vicon package¶
Interface for the PAM Vicon system.
- pam_vicon.DEFAULT_ORIGIN_SUBJECT = 'Pamy_ceiling'¶
Name of the default origin subject in the table tennis lab.
This value should be used as default where ever the origin subject can be specified. Update here, if the name of the origin subject used in the lab changes.
- exception pam_vicon.NoFrameDataError[source]¶
Bases:
RuntimeError
Error indicating that called method needs Vicon frame data.
- class pam_vicon.PamVicon(segment_id: str)[source]¶
Bases:
object
Wrapper around o80 FrontEnd to more easily access PAM Vicon data.
- pam_vicon.get_table_pose(corner_positions_world: Sequence[ndarray], *, yaw_only: bool = False, table_length: float = 2.74, table_width: float = 1.525) Transformation [source]¶
Get pose of the table based on positions of the corner markers.
Expected order of the table corners:
1┌───────────┐2 │ │ │ y │ l │ ▲ │ e │ │ │ n │ │ x │ g │ └───> │ t │ │ h │ │ 4└───────────┘3 width
The default values for table length and width are based on the ITTF rules [1].
[1] https://documents.ittf.sport/document/284
- Parameters:
corner_positions_world – Positions of the table corners in world frame. See above for the expected order.
yaw_only – If true, only the yaw angle of the tables orientation is used (i.e. assume that the table is flat on the ground).
table_length – Length of the table in metres.
table_width – Width of the table in metres.
Submodules¶
- pam_vicon.o80 module
BackEnd
FixedSizeViconFrame
FrontEnd
FrontEnd.add_command()
FrontEnd.add_reinit_command()
FrontEnd.burst()
FrontEnd.final_burst()
FrontEnd.get_frequency()
FrontEnd.get_latest_observations()
FrontEnd.get_nb_actuators()
FrontEnd.get_observations_since()
FrontEnd.initial_states()
FrontEnd.is_backend_active()
FrontEnd.latest()
FrontEnd.pulse()
FrontEnd.pulse_and_wait()
FrontEnd.pulse_prepare_wait()
FrontEnd.purge()
FrontEnd.read()
FrontEnd.reset_next_index()
FrontEnd.wait()
FrontEnd.wait_for_next()
Introspector
Observation
Serializer
State
States
Subjects
from_json()
get_subject_names()
map_subject_name_to_index()
please_stop()
standalone_is_running()
start_standalone()
stop_standalone()
to_json()