[Rock-dev] [rock] #155: vizkit: should use the name class as the only widget name

rock noreply at opendfki.de
Fri Apr 20 18:18:38 CEST 2012


#155: vizkit: should use the name class as the only widget name
----------------------------+-----------------------------------
 Reporter:  sylvain.joyeux  |      Owner:  rock-dev-mailing-list
     Type:  enhancement     |     Status:  new
 Priority:  major           |  Milestone:
Component:  base            |   Keywords:
----------------------------+-----------------------------------
 Currently, the #register_* methods allow to specify (theoretically) "any"
 name for registered widgets. Unfortunately, it is not entirely the case
 anymore (vizkit3d widgets need to have the same name than the plugin
 name), and leads to NOT having a 1:1 mapping between class name, plugin
 name (for vizkit3d) and vizkit name. This makes using these widgets hard
 as one does not know what name it should query.

 The proposed change is to normalize all plugin names to the full class
 name, including namespace. Vizkit.default_loader should then accept doing
 e.g.

 {{{
 Vizkit.default_loader.envire.EnvireVisualization
 }}}

 What is missing so far is a way to keep backward compatibility. I would
 suggest to create an aliasing system (i.e. a map from "name" to "full
 class name") that would allow to keep access through the current names for
 a while.

-- 
Ticket URL: <http://rock.opendfki.de/ticket/155>
rock <http://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list