iCub-main
Public Member Functions | List of all members
python_simworld_control.WorldController Class Reference

Public Member Functions

def __init__ (self)
 
def create_object (self, obj, size, location, colour)
 
def move_object (self, obj_id, location)
 
def rotate_object (self, obj_id, rotation)
 
def get_object_location (self, obj_id)
 
def del_all (self)
 
def __del__ (self)
 

Detailed Description

Class for controlling iCub simulator via its RPC world port.

Definition at line 7 of file python_simworld_control.py.

Constructor & Destructor Documentation

◆ __init__()

def python_simworld_control.WorldController.__init__ (   self)

Definition at line 10 of file python_simworld_control.py.

◆ __del__()

def python_simworld_control.WorldController.__del__ (   self)

Definition at line 146 of file python_simworld_control.py.

Member Function Documentation

◆ create_object()

def python_simworld_control.WorldController.create_object (   self,
  obj,
  size,
  location,
  colour 
)
Create an object of a specified type, size, location and colour, returning internal object ID or -1 on error.

Definition at line 99 of file python_simworld_control.py.

◆ del_all()

def python_simworld_control.WorldController.del_all (   self)
Delete all objects from the simultor

Definition at line 135 of file python_simworld_control.py.

◆ get_object_location()

def python_simworld_control.WorldController.get_object_location (   self,
  obj_id 
)
Obtain the object location from the simulator. Returns None on failure.

Definition at line 126 of file python_simworld_control.py.

◆ move_object()

def python_simworld_control.WorldController.move_object (   self,
  obj_id,
  location 
)
Move an object specified by the internal id to another location.

Definition at line 116 of file python_simworld_control.py.

◆ rotate_object()

def python_simworld_control.WorldController.rotate_object (   self,
  obj_id,
  rotation 
)
Rotate an object specified by the internal id giving its absolute rotation.

Definition at line 121 of file python_simworld_control.py.


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