Skip to main content

Python framework for state-space modeling and algorithm development

Project description

Published in the Journal of Open Source Software (JOSS)


Tsipor Dynamics

Algorithms Engineering and Development

Tsipor (bird) Dynamics (c4dynamics) is the Python framework for state-space modeling and algorithm development.

Static Badge PyPI - Version GitHub deployments GitHub Actions Workflow Status GitHub Actions Workflow Status Pepy Total Downloads

About c4dynamics

c4dynamics is designed to simplify the development of algorithms for dynamic systems, using state space representations. It offers engineers and researchers a systematic approach to model, simulate, and control systems in fields like robotics, aerospace, and navigation.

The framework introduces state objects, which are foundational data structures that encapsulate state vectors and provide the tools for managing data, simulating system behavior, and analyzing results.

With integrated modules for sensors, detectors, and filters, c4dynamics accelerates algorithm development while maintaining flexibility and scalability.

Why c4dynamics?

✅ State objects for easy modeling

✅ Built-in functions for Kalman filters

✅ Integrated sensors and object detection models

✅ Out-of-the-box environments for reinforcement learning

✅ Seamless integration with OpenCV & Open3D

✅ Optimization for Monte Carlo simulations

Documentation

📘 Full documentation:
https://c4dynamics.github.io/c4dynamics/

  • Installation and setup guides
  • Core concepts and state-space modeling philosophy
  • API reference and examples
  • Tutorials for filtering, sensing, and simulation workflows

Requirements

Installation

For detailed instructions on installing c4dynamics, including setup for virtual environments, Python version requirements, and troubleshooting, refer to the c4dynamics setup guide.

>>> pip install c4dynamics

To run the latest GitHub version, download the repo and install required packages:

>>> pip install -r requirements.txt

Quickstart

Import c4dynamics:

>>> import c4dynamics as c4d

Define state space object of two variables in the state space (y, vy) with initial conditions (change the state with your variables):

>>> s = c4d.state(y = 1, vy = 0.5)

Store with time stamp t = 0:

>>> s.store(t = 0)

Multiply the state vector by a matrix and store:

>>> F = [[1, 1],                      
         [0, 1]]              
>>> s.X += F @ s.X                     
>>> s.store(t = 1)                    

Print the state variables, the state vector, and the stored data:

>>> print(s)  
[ y  vy ]
>>> s.X 
[2.5  1]
>>> s.data('y') 
([0,  1], [1,  2.5])

Support

If you encounter problems, have questions, or would like to suggest improvements, please open an Issue in this repository.

New in Block 2

Enhancements and modules in latest release:

  • Complete state space objects mechanism
  • Seeker and radar measurements
  • Kalman filter and Extended Kalman filter
  • YOLOv3 object detection API
  • Datasets fetching to run examples
  • Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c4dynamics-2.3.6.tar.gz (119.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c4dynamics-2.3.6-py3-none-any.whl (122.4 kB view details)

Uploaded Python 3

File details

Details for the file c4dynamics-2.3.6.tar.gz.

File metadata

  • Download URL: c4dynamics-2.3.6.tar.gz
  • Upload date:
  • Size: 119.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for c4dynamics-2.3.6.tar.gz
Algorithm Hash digest
SHA256 5680f7c9497b0d02d2221a51ddf492563a532d6d1bb838b81be7ff052bd02dec
MD5 9ec915821d1e7ef94f79f2994efe4f2c
BLAKE2b-256 01c7d467d961c2bae0b03b081735b62f8b34b5d5643e2ac6096168e4cdcf4ec9

See more details on using hashes here.

File details

Details for the file c4dynamics-2.3.6-py3-none-any.whl.

File metadata

  • Download URL: c4dynamics-2.3.6-py3-none-any.whl
  • Upload date:
  • Size: 122.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for c4dynamics-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7608372d1422b0f4d26790aba554406203ad8d6ef0c25bf89bc34a364f0b0fdd
MD5 712c57c5c4923b6bc517aabac3e54fd4
BLAKE2b-256 56fb343c2c0d58b9ec8667cfd1703423c8e053458e307167af148e5d74325f4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page