#include <helpers.hpp>
Public Member Functions | |
DriverPackPtr & | getDriverPack () |
const DriverPackPtr & | getDriverPack () const |
template<typename DataType > | |
BlockingServiceClientPtr< DataType > | makeBlockingServiceClient () |
template<typename DataType > | |
PublisherPtr< DataType > | makePublisher (uavcan::MonotonicDuration tx_timeout=uavcan::Publisher< DataType >::getDefaultTxTimeout()) |
template<typename DataType > | |
ServiceClientPtr< DataType > | makeServiceClient (const typename uavcan::ServiceClient< DataType >::Callback &cb) |
template<typename DataType > | |
ServiceServerPtr< DataType > | makeServiceServer (const typename uavcan::ServiceServer< DataType >::Callback &cb) |
template<typename DataType > | |
SubscriberPtr< DataType > | makeSubscriber (const typename uavcan::Subscriber< DataType >::Callback &cb) |
TimerPtr | makeTimer (uavcan::MonotonicDuration period, const typename uavcan::Timer::Callback &cb) |
TimerPtr | makeTimer (uavcan::MonotonicTime deadline, const typename uavcan::Timer::Callback &cb) |
NodeBase (DriverPackPtr driver_pack) | |
NodeBase (uavcan::ICanDriver &can_driver, uavcan::ISystemClock &clock) | |
Static Protected Member Functions | |
static void | enforce (int error, const std::string &msg) |
template<typename DataType > | |
static std::string | getDataTypeName () |
Protected Attributes | |
DriverPackPtr | driver_pack_ |
Generic wrapper for node objects with some additional convenience functions.
Definition at line 170 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Simple forwarding constructor, compatible with uavcan::Node.
Definition at line 195 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inlineexplicit |
Takes ownership of the driver container via the shared pointer.
Definition at line 202 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inlinestaticprotected |
Definition at line 175 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inlinestaticprotected |
Definition at line 186 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Definition at line 300 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Definition at line 299 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan_linux::BlockingServiceClient in the heap using shared pointer. The service client will be initialized immediately.
uavcan_linux::Exception. |
Definition at line 268 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::Publisher in the heap using shared pointer. The publisher will be initialized immediately.
uavcan_linux::Exception. |
Definition at line 226 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::ServiceClient in the heap using shared pointer. The service client will be initialized immediately.
uavcan_linux::Exception. |
Definition at line 254 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::ServiceServer in the heap using shared pointer. The server will be started immediately.
uavcan_linux::Exception. |
Definition at line 241 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::Subscriber in the heap using shared pointer. The subscriber will be started immediately.
uavcan_linux::Exception. |
Definition at line 213 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::Timer in the heap using shared pointer. The timer will be started immediately in periodic mode.
Definition at line 291 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
inline |
Allocates uavcan::Timer in the heap using shared pointer. The timer will be started immediately in one-shot mode.
Definition at line 279 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.
|
protected |
Definition at line 173 of file platform_specific_components/linux/libuavcan/include/uavcan_linux/helpers.hpp.