sensor Package

kinect Module

This code has been developed by Baptiste Busch: https://github.com/buschbapti

This module allows you to retrieve Skeleton information from a Kinect device. It is only the client side of a zmq client/server application.

The server part can be found at: https://bitbucket.org/buschbapti/kinectserver/src It used the Microsoft Kinect SDK and thus only work on Windows.

Of course, the client side can be used on any platform.

class pypot.sensor.kinect.sensor.Skeleton[source]

Bases: pypot.sensor.kinect.sensor.Skeleton

Create new instance of Skeleton(timestamp, user_id, hip_center, spine, shoulder_center, head, shoulder_left, elbow_left, wrist_left, hand_left, shoulder_right, elbow_right, wrist_right, hand_right, hip_left, knee_left, ankle_left, foot_left, hip_right, knee_right, ankle_right, foot_right)

joints = ('hip_center', 'spine', 'shoulder_center', 'head', 'shoulder_left', 'elbow_left', 'wrist_left', 'hand_left', 'shoulder_right', 'elbow_right', 'wrist_right', 'hand_right', 'hip_left', 'knee_left', 'ankle_left', 'foot_left', 'hip_right', 'knee_right', 'ankle_right', 'foot_right')
class pypot.sensor.kinect.sensor.Joint(position, orientation, pixel_coordinate)

Bases: tuple

Create new instance of Joint(position, orientation, pixel_coordinate)

orientation

Alias for field number 1

pixel_coordinate

Alias for field number 2

position

Alias for field number 0

class pypot.sensor.kinect.sensor.KinectSensor(addr, port)[source]

Bases: object

remove_user(user_index)[source]
remove_all_users()[source]
tracked_skeleton
get_skeleton()[source]
run()[source]

optitrack Module

class pypot.sensor.optitrack.TrackedObject(position, quaternion, orientation, timestamp)

Bases: tuple

Create new instance of TrackedObject(position, quaternion, orientation, timestamp)

orientation

Alias for field number 2

position

Alias for field number 0

quaternion

Alias for field number 1

timestamp

Alias for field number 3

pypot.sensor.optitrack.quat2euler(q)[source]