tkmotorcomp/slidercomp

✏️ Edit this page on GitHub

#contents

TkMotorComp

This sample is included with the Python edition of OpenRTM-aist.

Please note that it is not included with the C++ or Java editions.

Overview

This is a sample RT Component with a GUI interface. The sample component can be started by running:

TkMotorComp.bat

Startup Screen

TkMotorComp Execution Example

SliderComp

This sample is included with the Python edition of OpenRTM-aist.

Please note that it is not included with the C++ or Java editions.

Overview

This is a sample RT Component with a GUI interface. The sample component can be started by running:

SliderComp.bat

(The screen shown below is from a Windows environment.)

Startup Screen

SliderComp Execution Example

System Configuration

SliderComp and TkMotorComp in RTSystemEditor

Usage

SliderComp and TkMotorComp together provide a GUI-based simulation environment in which slider controls are used to control motor rotation.

  • Procedure

    • Start RTSystemEditor and open a new SystemEditor.

      For details on using RTSystemEditor, refer to:

      RTSystemEditor

    • Start both components:

      SliderComp.bat
      TkMotorComp.bat
      
    • Both components will appear in the Name Service View of RTSystemEditor. Drag them onto the SystemEditor.

    • Connect the corresponding ports of the two components. (Refer to the RTSystemEditor example shown above.)

    • Right-click either component and select:

      [Activate Systems]
      
    • In the TkMotorComp GUI, a set of rotating disks representing motor-driven actuators will be displayed.

    • Verify that the rotation of these disks can be controlled using the vertical slider knobs in the SliderComp GUI.

    • The six slider knobs correspond to six simulated motor rotations.