HiveMind
Public Member Functions | Private Attributes | List of all members
BSP Class Reference

#include <BSP.h>

Inheritance diagram for BSP:
Inheritance graph
Collaboration diagram for BSP:
Collaboration graph

Public Member Functions

 BSP ()
 
 ~BSP () override
 
void initChip (void *args) override
 Initialise the chip for usage. Needs to be called early in the program. More...
 
uint16_t getUUId () const override
 Returns the unique id associated with the board. More...
 
uint32_t generateRandomNumber () override
 Returns a positive random number, uses an hardware RNG if available. More...
 
std::shared_ptr< ros::NodeHandle > getRosNodeHandle ()
 
- Public Member Functions inherited from IBSP
virtual ~IBSP ()=default
 

Private Attributes

std::shared_ptr< ros::NodeHandle > m_rosNodeHandle
 
BaseTask< 2 *configMINIMAL_STACK_SIZEm_rosWatchTask
 
std::mt19937 m_rng
 
std::uniform_int_distribution< uint32_t > m_distribution
 

Constructor & Destructor Documentation

◆ BSP()

BSP::BSP ( )

◆ ~BSP()

BSP::~BSP ( )
overridedefault

Member Function Documentation

◆ generateRandomNumber()

uint32_t BSP::generateRandomNumber ( )
overridevirtual

Returns a positive random number, uses an hardware RNG if available.

Implements IBSP.

◆ getRosNodeHandle()

std::shared_ptr< ros::NodeHandle > BSP::getRosNodeHandle ( )
Here is the caller graph for this function:

◆ getUUId()

uint16_t BSP::getUUId ( ) const
overridevirtual

Returns the unique id associated with the board.

Implements IBSP.

Here is the call graph for this function:

◆ initChip()

void BSP::initChip ( void *  args)
overridevirtual

Initialise the chip for usage. Needs to be called early in the program.

Implements IBSP.

Member Data Documentation

◆ m_distribution

std::uniform_int_distribution<uint32_t> BSP::m_distribution
private

◆ m_rng

std::mt19937 BSP::m_rng
private

◆ m_rosNodeHandle

std::shared_ptr<ros::NodeHandle> BSP::m_rosNodeHandle
private

◆ m_rosWatchTask

BaseTask<2 * configMINIMAL_STACK_SIZE> BSP::m_rosWatchTask
private

The documentation for this class was generated from the following files: