RTC Toolkit  2.0.0
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  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. More...
 
template<class T >
std::vector< T > read_col_from_fits (fitsfile *fptr, char *name, long nrows, bool output=false)
 helper function for reading columns of fits table More...
 

Function Documentation

◆ read_col_from_fits()

template<class T >
std::vector<T> rtctk::standaloneTools::read_col_from_fits ( fitsfile *  fptr,
char *  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.