Public Member Functions | List of all members
sick_scan_xd_subscriber.NumpyJsonEncoder Class Reference
Inheritance diagram for sick_scan_xd_subscriber.NumpyJsonEncoder:
Inheritance graph
[legend]

Public Member Functions

def default (self, obj)
 

Detailed Description

Extension of json encoder to support numpy types, thanks to https://stackoverflow.com/questions/26646362/numpy-array-is-not-json-serializable
and https://www.geeksforgeeks.org/fix-type-error-numpy-array-is-not-json-serializable/

Definition at line 46 of file sick_scan_xd_subscriber.py.

Member Function Documentation

◆ default()

def sick_scan_xd_subscriber.NumpyJsonEncoder.default (   self,
  obj 
)

Definition at line 51 of file sick_scan_xd_subscriber.py.


The documentation for this class was generated from the following file:


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:21