RTC Toolkit 5.0.0
Loading...
Searching...
No Matches
Classes | Functions
rtctk::standaloneTools Namespace Reference

Classes

class  GenDdsPublisher
 Generic DDS Publisher Class provides functionally to create one DDS Topic and one DDS DataWriter, and one thread that first waits for a given number of data readers/subscribers and after publishing sampels in a loop. More...
 
class  GenRtrWriter
 Generic RTR Writer Class provides functionally to create one RTR's DP DDS, and one thread that writes value to the DP in a loop. More...
 
class  GenRtrWriterBase
 Base class for Generic RTR Writer. More...
 
class  ShmPub
 ShmPub parent class. More...
 
class  ShmSubscriber
 Implements basic features for a simple shared memory subscriber program. More...
 
class  ShmSubscriberBase
 Base class to implement all non-template methods that can be pre-compiled for the ShmSubscriber. More...
 

Functions

void SignalHandler (int signal)
 Handles basic signals to allow simple exiting from a ShmPub process.
 
template<class T >
std::vector< T > ReadColumnFromFits (fitsfile *fptr, const std::string &name, long nrows, bool output=false)
 helper function for reading columns of fits table
 

Function Documentation

◆ ReadColumnFromFits()

template<class T >
std::vector< T > rtctk::standaloneTools::ReadColumnFromFits ( fitsfile * fptr,
const std::string & name,
long nrows,
bool output = false )

helper function for reading columns of fits table

will return the data from the specified column of bin table

Template Parameters
datatype i.e float, int etc.
Parameters
fptrpointer to fitsfile
namename of column wanted
nrowsnumber of rows in column.
outputoutput data of column if true defaults to false
Returns
std::vector<T> of data read from file
Error::Timeout if writer did not signal us before timeout time elapsed and element iterator become valid.

◆ SignalHandler()

void rtctk::standaloneTools::SignalHandler ( int signal)

Handles basic signals to allow simple exiting from a ShmPub process.

Parameters
signalThe signal number being received from the system.