Privacy
An open-source, flexible 3D physical simulation framework
VirtualJoystickPlugin Class Reference

#include <VirtualJoystickPlugin.h>

Public Member Functions

 VirtualJoystickPlugin (lib_manager::LibManager *theManager)
 
 ~VirtualJoystickPlugin (void)
 
int getLibVersion () const
 
const std::string getLibName () const
 
void getNewValue (double *leftValue, double *rightValue)
 
virtual void menuAction (int action, bool checked=false)
 Called whenever a menu item is selected. More...
 
- Public Member Functions inherited from lib_manager::LibInterface
 LibInterface (LibManager *theManager)
 
virtual ~LibInterface (void)
 
ModuleInfo getModuleInfo () const
 
virtual void newLibLoaded (const std::string &libName)
 
virtual void createModuleInfo (void)
 
- Public Member Functions inherited from mars::main_gui::MenuInterface
virtual ~MenuInterface ()
 

Private Slots

void newSpeed (double leftValue, double rightValue)
 
void hideWidget (void)
 
void closeWidget (void)
 

Private Attributes

mars::main_gui::GuiInterfacegui
 
JoystickWidgetjoystick
 
double leftValue
 
double rightValue
 
mars::data_broker::DataBrokerInterfacedataBroker
 
mars::data_broker::DataPackage dataPackage
 
mars::cfg_manager::CFGManagerInterfacecfg
 
unsigned long dataPackageId
 

Additional Inherited Members

- Protected Attributes inherited from lib_manager::LibInterface
LibManagerlibManager
 
ModuleInfo moduleInfo
 

Detailed Description

Definition at line 40 of file VirtualJoystickPlugin.h.

Constructor & Destructor Documentation

◆ VirtualJoystickPlugin()

VirtualJoystickPlugin::VirtualJoystickPlugin ( lib_manager::LibManager theManager)

Definition at line 9 of file VirtualJoystickPlugin.cpp.

◆ ~VirtualJoystickPlugin()

VirtualJoystickPlugin::~VirtualJoystickPlugin ( void  )

Definition at line 33 of file VirtualJoystickPlugin.cpp.

Member Function Documentation

◆ closeWidget

void VirtualJoystickPlugin::closeWidget ( void  )
privateslot

Definition at line 93 of file VirtualJoystickPlugin.cpp.

◆ getLibName()

const std::string VirtualJoystickPlugin::getLibName ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 52 of file VirtualJoystickPlugin.h.

◆ getLibVersion()

int VirtualJoystickPlugin::getLibVersion ( ) const
inlinevirtual

Implements lib_manager::LibInterface.

Definition at line 51 of file VirtualJoystickPlugin.h.

◆ getNewValue()

void VirtualJoystickPlugin::getNewValue ( double *  leftValue,
double *  rightValue 
)

Definition at line 63 of file VirtualJoystickPlugin.cpp.

◆ hideWidget

void VirtualJoystickPlugin::hideWidget ( void  )
privateslot

Definition at line 90 of file VirtualJoystickPlugin.cpp.

◆ menuAction()

void VirtualJoystickPlugin::menuAction ( int  action,
bool  checked = false 
)
virtual

Called whenever a menu item is selected.

Parameters
actionThe action that is passed to the GuiInterface via addGenericMenuAction function.
checkedIndicates if the menu/menu item is checked or not.

Implements mars::main_gui::MenuInterface.

Definition at line 68 of file VirtualJoystickPlugin.cpp.

◆ newSpeed

void VirtualJoystickPlugin::newSpeed ( double  leftValue,
double  rightValue 
)
privateslot

Definition at line 40 of file VirtualJoystickPlugin.cpp.

Member Data Documentation

◆ cfg

mars::cfg_manager::CFGManagerInterface* VirtualJoystickPlugin::cfg
private

Definition at line 71 of file VirtualJoystickPlugin.h.

◆ dataBroker

mars::data_broker::DataBrokerInterface* VirtualJoystickPlugin::dataBroker
private

Definition at line 69 of file VirtualJoystickPlugin.h.

◆ dataPackage

mars::data_broker::DataPackage VirtualJoystickPlugin::dataPackage
private

Definition at line 70 of file VirtualJoystickPlugin.h.

◆ dataPackageId

unsigned long VirtualJoystickPlugin::dataPackageId
private

Definition at line 72 of file VirtualJoystickPlugin.h.

◆ gui

mars::main_gui::GuiInterface* VirtualJoystickPlugin::gui
private

Definition at line 66 of file VirtualJoystickPlugin.h.

◆ joystick

JoystickWidget* VirtualJoystickPlugin::joystick
private

Definition at line 67 of file VirtualJoystickPlugin.h.

◆ leftValue

double VirtualJoystickPlugin::leftValue
private

Definition at line 68 of file VirtualJoystickPlugin.h.

◆ rightValue

double VirtualJoystickPlugin::rightValue
private

Definition at line 68 of file VirtualJoystickPlugin.h.


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