Running a GUI Pendant (Eng)

From Neuromeka Wiki
Jump to: navigation, search


GUI Pendant Project

  • GUI Pendant Project Structure
- 'GUI Pendant' was made by Qt platform(C++).
- User can download installation file(Qt Creator) at http://www.qt.io/download-open-source/
- Load "GUIPendantApp" project(neuromeka\NRMKFoundation\example\GUIPendantApp) to Qt Creator.
- Project configuration is shown below.

Gui pendant 001.png


  • GUI Pendant UI Structure - mainwindow.ui
- Using *.ui file, user can make UI easily.
- 'mainwindow.ui' consists of Socket UI and Key button UI.

Gui pendant 002.png


  • GUI Pendant - UI button setting
- User can set UI button input event in 'mainwindow.cpp'.
- User can also set Socket events.
- Each Objects is set up with handler function. When event happens, that function runs.

Gui pendant 005.png


  • GUI Pendant - key functions
- connectToServer : It try socket communication using inputted IP & Port value. QTcpSocket class is used.
- dataReceive : It receive data from RTControlClient, and parse. GUI Pendant show 'q' value in realtime.
- sendKeyToServer : It transmit command key value to RTControlClient.




GUI Pendant Example

  • 1. Visual studio -> New Project -> Create a NRMKFoundation project
- Create a WAM7 project that is default project.

Gui 001.png


  • 2. Select Integrated application mode
- Set up related option.

Gui 002.png Gui 003.png


  • 3. Integrated application generation
- Go to neuromeka\NRMKFoundation\example\NRMKFoundation\WAM7 folder.
- Copy 'DefineWAM7.h' & 'NRMKFrameworkWAM7.cpp' file in 'src' folder. and overwrite it to your project path.
- 'GUIPendantSocket.h' has role of communication with 'GUI Pendant application'.
- Compile -> run.

Gui 004.png


  • 4. Run GUI Pendant application
- Run neuromeka\NRMKFoundation\bin\GUIControlPendant\GUControlPendant.exe file.

Gui 005.png


  • 5. Run CADKitViewer
- Load WAM7 model file.

Gui 006.png


  • 6. Test
- 1) Run 'WAM7 integrated application'.
- 2) Connect CADKitViewer to 'WAM7 integrated application'.
- 3) GUI Pendant -> After input IP value, click 'Connect' button.
- 4) CADKitViewer -> Click 'tab' key -> start simulation.
- 5) GUI Pendant receive data in realtime.
- 6) GUI Pendant -> click command buttons -> Wam7 move according to command..

Gui 007.png


  • 7. Test movie