InertiaSDK

Loading...
Searching...
No Matches
platform.h
1#pragma once
2
3#if !defined(inertia_EXPORTS)
4#include <chrono>
5#include <iostream>
6#include <fstream>
7#include <sstream>
8#include <iomanip>
9#include <string>
10#include <map>
11#include <vector>
12#include <set>
13#include <memory>
14
15#if defined(WITH_BOOST_PROGRAM_OPTIONS)
16#if defined(__clang__)
17#pragma clang diagnostic push
18#pragma clang diagnostic ignored "-Weverything"
19#elif defined(__GNUC__)
20#pragma GCC diagnostic push
21#pragma GCC diagnostic ignored "-Wall"
22#endif
23#include <boost/program_options.hpp>
24 namespace po = boost::program_options;
25#if defined(__clang__)
26#pragma clang diagnostic pop
27#elif defined(__GNUC__)
28#pragma GCC diagnostic pop
29#endif
30#endif // WITH_BOOST_PROGRAM_OPTIONS
31
32#endif //inertia_EXPORTS
33
34
35 namespace inertia
36{
37 struct StreamListener;
38 typedef std::shared_ptr<StreamListener> StreamListenerPtr;
39
40 struct InertiaConfig;
41 typedef std::shared_ptr<InertiaConfig> ConfigPtr;
42 typedef std::shared_ptr<std::vector<InertiaConfig> > ConfigVectorPtr;
43
44 struct InertiaCommands;
45 typedef std::shared_ptr<InertiaCommands> CommandPtr;
46 typedef std::shared_ptr<std::vector<InertiaCommands> > CommandVectorPtr;
47
48 struct Sample;
49 typedef std::shared_ptr<std::vector<Sample> > SampleVectorPtr;
50
51 struct InertiaCommand;
52 typedef std::shared_ptr<InertiaCommand> InertiaCommandPtr;
53
54 struct ServiceResponse;
55 typedef std::shared_ptr<ServiceResponse> ServicePtr;
56
57 struct Channel;
58 typedef std::map<unsigned, Channel> ChannelMap;
59
60#define ADDRESS_BROADCAST 0xffff
61
62}
inertia
Definition FlashCommands.h:6
inertia::ServicePtr
std::shared_ptr< ServiceResponse > ServicePtr
Pointer to a ServiceResponse.
Definition platform.h:55
inertia::CommandPtr
std::shared_ptr< InertiaCommands > CommandPtr
Pointer to an InertiaCommands.
Definition platform.h:45
inertia::InertiaCommandPtr
std::shared_ptr< InertiaCommand > InertiaCommandPtr
Pointer to an InertiaCommand.
Definition platform.h:52
inertia::ConfigVectorPtr
std::shared_ptr< std::vector< InertiaConfig > > ConfigVectorPtr
Pointer to a vector of InertiaConfig.
Definition platform.h:42
inertia::StreamListenerPtr
std::shared_ptr< StreamListener > StreamListenerPtr
Pointer to a SteamListener.
Definition platform.h:38
inertia::ConfigPtr
std::shared_ptr< InertiaConfig > ConfigPtr
Pointer to an InertiaConfig.
Definition platform.h:41
inertia::CommandVectorPtr
std::shared_ptr< std::vector< InertiaCommands > > CommandVectorPtr
Pointer to a vector of InertiaCommands.
Definition platform.h:46
inertia::ChannelMap
std::map< unsigned, Channel > ChannelMap
Map with Channel information per samplingChannel.
Definition platform.h:58
inertia::SampleVectorPtr
std::shared_ptr< std::vector< Sample > > SampleVectorPtr
Pointer to a vector of Sample.
Definition platform.h:49
inertia::Channel
Definition ConfigChannel.h:47
inertia::InertiaCommand
Definition InertiaCommand.h:20
inertia::InertiaCommands
Commands.
Definition InertiaCommands.h:18
inertia::InertiaConfig
Sensor Configuration.
Definition InertiaConfig.h:48
inertia::Sample
Sensor data.
Definition Sample.h:73
inertia::ServiceResponse
Definition InertiaService.h:278
inertia::StreamListener
Asynchronous callbacks.
Definition StreamListener.h:27