[Rock-dev] rock and octave - looking for contribution

Alexander Duda Alexander.Duda at dfki.de
Tue Oct 25 11:32:08 CEST 2011


I currently using octave to process rock log data on the fly and feed
them back to orocos tasks. But the interface is still a bit ugly and
slow. Therefore if some more people are interested in using octave to
process data on the fly we could spent some time to improve it.

What currently works:
########################################################
# octave m.file which is called via engine.mytest
########################################################
function result = mytest(data)
  %data has the same layout as the typelib type 
  figure(1);
  plot(data.beam);
  sleep(0.01);
  result = data;
endfunction

########################################################
# ruby start script  
#######################################################
require 'vizkit'
require 'orocos/log'
require 'octave'

engine = Octave::Engine.new
log = Orocos::Log::Replay.open(ARGV)

log.sonar_rear.BaseScan do |data|
  a = engine.mytest(to_octave(data))
  from_octave(data,a)
  data
end

Vizkit.control log
Vizkit.exec



Alex


-- 
Dipl.-Ing. Alexander Duda 
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda 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