Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Python bindings #119

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

AlexanderFabisch
Copy link

@AlexanderFabisch AlexanderFabisch commented Feb 28, 2018

In case this is interesting for anyone: we implemented Python bindings for base-types for a prototype in the project InFuse. If this should go to master, there are still some things that have to be done:

  • make dependencies optional in manifest.xml and add them to a package-set
  • integrate setup in main CMakeLists.txt
  • compatibility to Python 2
  • implement Python bindings for the rest of the types

I would like to hear your opinion about this.

An example of how it can be used (more can be found in the unit tests):

imu = basetypes.IMUSensors()
imu.time = basetypes.Time.now()
if imu.time.is_null():
    raise Exception("beeep")
imu.acc.x = 1.0
imu.gyro.x = 2.0
imu.mag.x = 3.0

@Rauldg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant