This class implements a TaskContext that sends position values to the KDLViewer using an ACE-socket. More...
#include <naxespositionviewer.hpp>
Public Member Functions | |
NAxesPositionViewer (const std::string &name, const std::string &propertyfilename="cpf/viewer.cpf") | |
Constructer of this class. | |
virtual bool | startup () |
This function contains the application's startup code. | |
virtual void | update () |
This function is periodically called. | |
virtual void | shutdown () |
This function is called when the task is stopped. | |
Protected Attributes | |
RTT::Property< int > | portnumber |
number of the port that the ACE-socket should use | |
RTT::Property< int > | num_axes |
number of axes to view | |
RTT::Property< bool > | seperate_ports |
boolean whether the positionvalues are stored in separte ports or in one port which contains a vector of values | |
RTT::Property< std::string > | port_name |
name of the port (if seperate ports NAxesPositionViewer will look for ports port_name0, port_name1, . | |
std::vector< RTT::ReadDataPort < double > * > | seperateValues |
Vector of dataports containing the position values (used when NAxesPositionViewer::seperate_ports is true). | |
RTT::ReadDataPort< std::vector < double > > * | vectorValue |
Dataports containing the vector of position values (used when NAxesPositionViewer::seperate_ports is false). |
This class implements a TaskContext that sends position values to the KDLViewer using an ACE-socket.
Singlethreaded reactive server that can handle multiple clients.
Definition at line 23 of file naxespositionviewer.hpp.
NAxesPositionViewer | ( | const std::string & | name, | |
const std::string & | propertyfilename = "cpf/viewer.cpf" | |||
) |
Constructer of this class.
name | name of the TaskContext | |
propertyfilename | location of the propertyfile. Default: cpf/viewer.cpf |
initializing properties.
Adding properties
Creating and adding the data-ports
Definition at line 136 of file naxespositionviewer.cpp.
References NAxesPositionViewer::num_axes, NAxesPositionViewer::port_name, NAxesPositionViewer::portnumber, NAxesPositionViewer::seperate_ports, NAxesPositionViewer::seperateValues, and NAxesPositionViewer::vectorValue.
bool startup | ( | ) | [virtual] |
This function contains the application's startup code.
Return false to abort startup.
Definition at line 198 of file naxespositionviewer.cpp.
RTT::Property<std::string> port_name [protected] |
name of the port (if seperate ports NAxesPositionViewer will look for ports port_name0, port_name1, .
..
Definition at line 70 of file naxespositionviewer.hpp.
Referenced by NAxesPositionViewer::NAxesPositionViewer().