[Rock-dev] log file converter / updating frame.h SonarScan

Alexander Duda Alexander.Duda at dfki.de
Tue Sep 20 11:42:18 CEST 2011


On Tue, 2011-09-20 at 11:20 +0200, Sylvain Joyeux wrote:
> On 09/20/2011 11:12 AM, Alexander Duda wrote:
> >>> -->   add the package to the package set rock.toolchain
> >>>
> >>> -->   add a script rock-convert to base/scripts/bin which can be used to
> >>> update base types (rock-convert logfile.0.log)
> >> Why not put it in log_tools/bin (or, following your proposal,
> >> post_proc.rb/bin) ???
> > The reason is that this script is only for updating base types. For all
> > the other types the user has to write his own script.
> I don't see why we could not automatically load all the log_migration 
> scripts

Ok, that sounds reasonable. 
 -> add a new CMake Macro ROCK_LOG_MIGRATION to RockRuby.cmake which
installs all migration scripts into
share/rock/log/migration/<package_name>/type1.rb

 -> move the convert script to log_tools/bin which picks up all scripts
from share/...

> 
> In general, I think it would start to be useful to have a ROCK_PREFIXES 
> environment variable and look for things in subdirectories of that 
> prefix (in this case, log/migration/). We could also have a vizkit/ 
> subdirectory and use it to load vizkit extensions (they are currently 
> loaded under lib/qt/designer/* which sucks -- I can say it, I added 
> that)... and so on.

I added that but the reason is quite simple. The Qt designer wants to
have this folder structure :-(.

> >>> -->   add conversions rules for base
> >>> to /base/orogen/types/lib/base/immigrate
> >> Mmmmm .... I would rather have a src/log_migration.rb file and install
> >> it in share/rock/log/migration or something like that. In general, I
> >> start to dislike the Ruby code that stays in CMake packages. It should
> >> (in general) be installed with the rest of the package.
> > Hmm that's bad for testing.
> Why ? You have to install, which is something that you have to do anyway 
> when you are manipulating C++ packages.
> 
> To refine my proposal:
> 
>    src/log_migration.rb would get installed as 
> share/rock/log/migration/<package_name>.rb

There are more than one script per package therefore I would go for 
share/rock/log/migration/<package_name>/type1.rb
share/rock/log/migration/<package_name>/type2.rb
...

> 
> Not installing these files is harmful as it will make debian package 
> generation a lot harder. It is OK with pure Ruby packages as they have a 
> standardized "behaviour", but cmake packages should really install 
> everything they have.
> 
> Sylvain

-- 
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