Git Product home page Git Product logo

mifsa's Introduction

MIFSA - The middleware framework for SOA-based automotive

The middleware framework of in-vehicle soa, based on C++.

Note: This is a top-layer project, you can enter the subprojects to build separately.

The subprojects is here:

mifsa-base

mifsa-gnss

mifsa-ota

The yocto-layer is here:

meta-mifsa

The yocto-build-project is here:

mifsa-yocto-build

So what is this about?

Detailed documentation is found in introduction(中文).

Features:

  • Implementation based on Modern c++ (c++14).
  • Soa-based architecture design, support dds someip fdbus .
  • Hierarchical design, low in coupling, support non-intrusive development
  • Modern cmake project management, standard export of support libraries.
  • Platform abstraction and plug-in, with good portability.
  • Cross-platform support
  • Fewer dependencies on 3rd party libraries (only hpp).
  • Support Fuzz-test (TODO).

Requirements:

Compiler: this makes heavy use of C++11 and requires a recent compiler and STL. The following compilers are known to compile the test programs:

  • msvc2015+ on Windows7
  • clang-3.4+ on Ubuntu-14.04
  • g++-4.9+ on Ubuntu-14.04
  • qcc7.0.0+ on Qnx7.0.0
  • ndk r12+ on Android8

This repository uses the following header only C++ library:

One of the following rpc communication libraries is required:

Note: Also supports custom rpc.

How to build:

cmake -B build
cmake --build build --target install

Optional:

  • -DMIFSA_BUILD_EXAMPLES:

    whether to compile the examples, default is on.

  • -DMIFSA_BUILD_TESTS :

    whether to compile the tests, default is on.

  • -DMIFSA_IDL_TYPE:

    Select the rpc communication component (idl), support auto/ros/vsomeip/fdbus/custom, default is auto.

Examples:

cmake -B build \
	-DCMAKE_INSTALL_PREFIX=build/install \
	-DMIFSA_BUILD_EXAMPLES=ON \
	-DMIFSA_BUILD_TESTS=OFF \
	-DMIFSA_IDL_TYPE=fdbus
cmake --build build --target install -j8
Note:
For vsomeip support, capicxx-core-tools Need to link to the bin directory.
Example:
ln -sf [capicxx-core-tools dir]/commonapi-core-generator-linux-x86_64 /usr/local/bin/capicxx-core-gen
ln -sf [capicxx-core-tools dir]/commonapi-someip-generator-linux-x86_64 /usr/local/bin/capicxx-someip-gen

For ros2 support, you should set following environment
export AMENT_PREFIX_PATH=[ros2 install dir] #example: opt/ros2_install
export CMAKE_PREFIX_PATH=[ros2 install dir] #example: opt/ros2_install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH;[ros2 lib install dir] #example: opt/ros2_install/lib
export PYTHONPATH=[ros2 python install path] #example: opt/ros2_install/lib/python3.10/site-packages

How to add modules:

Note: Only support in linux.

./copyproject.sh
#inpurt project name to copy
#inpurt target project name
#inpurt string to replace
#inpurt target string

Examples:

./copyproject.sh
mifsa_gnss
mifsa_media
gnss
media

Then,modify other content to complete the adaptation of the module.

Copyright:

Juntuan.Lu, 2020-2030, All rights reserved.

mifsa's People

Contributors

thun-res avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.