You are accessing the core C++ API documentation for one of the most feature-rich and fastest distributed application development libraries in the world. MADARA has been primarily used for building distributed artificial intelligence and knowledge bases in robotics that are resilient to extreme outdoor environments, network disconnections, and problematic sensors and actuators.
MADARA facilitates development and even formal verification by providing a unique, intuitive interface that integrates a distributed knowledge base into C++ programs through the inclusion of a knowledge base, a networking transport, and C++ variables called containers that look and feel like normal object-oriented C++ code, but that send and receive knowledge modifications over the network. MADARA includes advanced threading and networking features like bandwidth enforcement, network filtering, and thread hertz enforcement. It also includes hundreds of other quality-of-service and optimization features that allow MADARA to operate fast and efficiently, even on ARM and other reduced instruction set CPUs.
For new users, you may want to try the C++ guide series, which walks developers through the MADARA API and basic usage.
C++ Guide Series: Architecture | Knowledge Base | Networking | Containers | Threads | Optimizations | KaRL
For more advanced users, this API documentation is directly generated from the code base and includes as much information as our developers can think of to help with debugging, creating and optimizing your code. You can use the Namespace and Class list navigations to find specific documentation, or you use the topic areas below:
Places in the API documentation to start looking for information on:
- Using The Knowledge Base
- Browse object-oriented containers via madara::knowledge::containers classes (preferred)
- Use direct Knowledge Base functions via madara::knowledge::KnowledgeBase
- Transfering Knowledge / Networking
- Browse the builtin transports for UDP, Broadcast or Multicast in madara::transport
- Make your own transport by extending madara::transport::Base
- Logging information to files or console
- Browse verbose logging options for MADARA internals via madara::logger::LogLevels set on madara::logger::Logger via madara::logger::Logger::set_level
- Use the global logger (madara::logger::global_logger) by including madara/logger/GlobalLogger.h
- Create your own logger and enumerations by creating a new instance of madara::logger::Logger. You don't have to extend it.
- Use high performance logging macros like madara::logger::madara_logger_ptr_log with the global_logger or madara::logger::madara_logger_log with your own logger instance. These only perform function calls if the log level is appropriate (super fast)
- Calling functions from inside the KaRL interpreter
- Define custom C++ functions and bind them to function names in KaRL via madara::knowledge::KnowledgeBase::define_function
- Evaluate such functions in KaRL by calling madara::knowledge::KnowledgeBase::evaluate
- Using Event-Based Programming
- Create custom on-send events by extending madara::filters::AggregateFilter and adding them to transports with madara::transport::QoSTransportSettings::add_send_filter(filters::AggregateFilter * filter)
- Create custom on-receive events by extending madara::filters::AggregateFilter and adding them to transports with madara::transport::QoSTransportSettings::add_receive_filter(filters::AggregateFilter * filter)
- Create custom on-rebroadcast events by extending madara::filters::AggregateFilter and adding them to transports with madara::transport::QoSTransportSettings::add_rebroadcast_filter(filters::AggregateFilter * filter)
- Enforcing Bandwidth Limits
- Set bandwidth limits in QoSTransportSettings via madara::transport::QoSTransportSettings::set_send_bandwidth_limit or base limits on total throughput over the transport with madara::transport::QoSTransportSettings::set_total_bandwidth_limit
- Create custom filters for madara::transport::QoSTransportSettings::add_send_filter(filters::AggregateFilter * filter) by extending madara::filters::AggregateFilter
- Creating more realistic tests
- Set drop rate and drop type via madara::transport::QoSTransportSettings::update_drop_rate
- Working with networks
- Add built-in transports via madara::knowledge::KnowledgeBase::attach_transport(const std::string &, transport::TransportSettings & settings)
- Add custom transports by extending madara::transport::Base and attaching the transport via madara::knowledge::KnowledgeBase::attach_transport(madara::transport::Base *)
If you have any questions, please contact us through our main website at http://madara.sourceforge.net. Thanks!