Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

We have defined a couple of common datatypes and already implemented SICMessage-extended classes for those. This allows for inheritance. Please use or extend those classes if the datatype you will be working with matches on of the pre-defined types.

The message can be found in https://bitbucket.org/socialroboticshub/docker/src/v3/sic/sic_framework/core/data_python2.py.

JPEGCompressedImageMessage

UncompressedImageMessage

AudioMessage

BoundingBoxesMessage

Preferred way of sending any message containing an image. Uses lossy JPEG compression on WxHx3 images. Non-image content will be destroyed by this compression.

Same as JPEGCompressedImageMessage, but without compression. This means that this message is significantly slower. Only use this if the image data must be kept untouched.

Preferred way of sending any message containing audio. The audio must contain contain pulse-code modulated (PCM) 16 bit signed integer waveform audio data.

Preferred way of sending any message containing a list of BoundingBox objects. The BoundingBox is a generic class for single bounding boxes in x,y,w,h-format. x,y represents top-left pixel. Bounding boxes can easily be drawn by calling draw_on_image

  • No labels