Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
sr_gui_joint_slider.joint_slider.SrGuiJointSlider Class Reference
Inheritance diagram for sr_gui_joint_slider.joint_slider.SrGuiJointSlider:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def delete_old_sliders_
def get_current_controllers
def load_new_sliders_
def on_refresh_button_cicked_
def on_reload_button_cicked_
def on_robot_type_changed_
def on_slider_release_checkbox_clicked_
def restore_settings
def save_settings
def shutdown_plugin

Public Attributes

 joints
 selection_slider
 sliders
 trajectory_pub
 trajectory_state_slider_cb
 trajectory_state_sub
 trajectory_target

Static Public Attributes

dictionary controller_state_types

Private Member Functions

def _create_joints
def _get_joint_min_max_vel
def _get_joint_min_max_vel_special
def _load_robot_description
def _trajectory_state_cb
def _unregister

Private Attributes

 _robot_description_xml_root
 _widget

Detailed Description

A rosgui plugin to change the position of the different joints

Definition at line 43 of file joint_slider.py.


Constructor & Destructor Documentation

Definition at line 61 of file joint_slider.py.


Member Function Documentation

def sr_gui_joint_slider.joint_slider.SrGuiJointSlider._create_joints (   self,
  controllers 
) [private]

Definition at line 284 of file joint_slider.py.

Get the min and max from the robot description for a given joint.

Definition at line 242 of file joint_slider.py.

Definition at line 274 of file joint_slider.py.

Load the description from the param named in the edit as an ET element.
Sets self._robot_description_xml_root to the element.

Definition at line 225 of file joint_slider.py.

def sr_gui_joint_slider.joint_slider.SrGuiJointSlider._trajectory_state_cb (   self,
  msg,
  index 
) [private]

Definition at line 375 of file joint_slider.py.

Definition at line 98 of file joint_slider.py.

Clear existing slider widgets from layout
Empty the slider list

Definition at line 150 of file joint_slider.py.

@return: list of current controllers with associated data

Definition at line 206 of file joint_slider.py.

Create the new slider widgets
Load the new slider
Put the slider in the list

Definition at line 168 of file joint_slider.py.

Call refresh for every slider

Definition at line 131 of file joint_slider.py.

Clear existing slider widgets from layout
Load the correct robot library
Create and load the new slider widgets

Definition at line 113 of file joint_slider.py.

Definition at line 110 of file joint_slider.py.

Set tracking behaviour of each slider to false if checkbox is checked, true otherwise

Definition at line 138 of file joint_slider.py.

def sr_gui_joint_slider.joint_slider.SrGuiJointSlider.restore_settings (   self,
  global_settings,
  perspective_settings 
)

Definition at line 107 of file joint_slider.py.

def sr_gui_joint_slider.joint_slider.SrGuiJointSlider.save_settings (   self,
  global_settings,
  perspective_settings 
)

Definition at line 104 of file joint_slider.py.

Definition at line 101 of file joint_slider.py.


Member Data Documentation

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Initial value:
{
        "sr_mechanism_controllers/SrhJointPositionController": ("position", JointControllerState),
        "sr_mechanism_controllers/SrhEffortJointController": ("effort", JointControllerState),
        "sr_mechanism_controllers/SrhJointVelocityController": ("velocity", JointControllerState),
        "sr_mechanism_controllers/SrhMixedPositionVelocityJointController": ("position", SrJointControllerState),
        "sr_mechanism_controllers/SrhMuscleJointPositionController": ("position", JointMusclePositionControllerState),
        "position_controllers/JointTrajectoryController": ("position_trajectory", JointTrajectoryControllerState),
        "effort_controllers/JointTrajectoryController": ("position_trajectory", JointTrajectoryControllerState)}

Definition at line 52 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.

Definition at line 61 of file joint_slider.py.


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


sr_gui_joint_slider
Author(s): Ugo Cupcic
autogenerated on Thu Jun 6 2019 21:13:55