[Rock-dev] Syskit: change behaciour of syskit shell

Sylvain Joyeux sylvain.joyeux at dfki.de
Thu Jan 23 11:57:09 CET 2014


On Thursday, January 23, 2014 08:26:04 AM Matthias Goldhoorn wrote:
> On 22.01.2014 17:00, Sylvain Joyeux wrote:
> > On 01/22/2014 04:31 PM, Matthias Goldhoorn wrote:
> >> I had in my controllerscript a method like this:
> >>     40 module Robot
> >>     41     def set_state(state, substate)
> >>     42         State.lowlevel_state = state
> >>     43         State.lowlevel_substate = substate
> >>     44     end
> >>     45 end
> >> 
> >> As far as i remember i could call the method directly from the
> >> commandline.
> >> Is this not possible anymore, what's the way to do this?
> > 
> > The only this feature could have ever worked is if you had
> > 
> >     def self.set_state(...)
> >     end
> 
> Even this does not work anymore...

OK ... Sorry for the change.

Reimplementing it is not really possible neither really nice. There is however 
a way to extend the shell interface with custom commands. See e.g. 
lib/syskit/shell.rb for an example.
-- 
 Dr. Ing. Sylvain Joyeux
 Space and Security Robotics
 
 Besuchsadresse der Nebengeschäftstelle:
 DFKI GmbH
 Robotics Innovation Center
 Robert-Hooke-Straße 5
 28359 Bremen, Germany
 
 Postadresse der Hauptgeschäftsstelle Standort Bremen:
 DFKI GmbH
 Robotics Innovation Center
 Robert-Hooke-Straße 1
 28359 Bremen, Germany 

 Phone:     +49 421 178 45-4136
 Zentrale: +49 421 178 45-0
 Fax:           +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
 E-Mail:     sylvain.joyeux at dfki.de
 
 Weitere Informationen: http://www.dfki.de/robotik
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
 Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster 
 (Vorsitzender) Dr. Walter Olthoff
 Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
 Amtsgericht Kaiserslautern, HRB 2313
 Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
 USt-Id.Nr.:    DE 148646973
 Steuernummer:  19/673/0060/3 
 ---------------------------------------------------------------------


More information about the Rock-dev mailing list