Friday, April 21, 2006

Carmen - Carnegie Mellon Robot Navigation Toolkit

CARMEN is an open-source collection of software for mobile robot control. CARMEN is modular software designed to provide basic navigation primatives including: base and sensor control, logging, obstacle avoidance, localization, path planning, and mapping.

Troubleshooting the errors encountered during the compilation:

The first one is
****************************************************************
* Module : LOGTOOLS
* Comment : Log tools, like the famous log2pic
****************************************************************

--> Starting make
---- Compiling utils.c to utils.o (C)
utils.c: In function ‘get_user_time’:
utils.c:307: error: ‘CLK_TCK’ undeclared (first use in this function)
utils.c:307: error: (Each undeclared identifier is reported only once
utils.c:307: error: for each function it appears in.)
cc1: warnings being treated as errors
utils.c:308: warning: control reaches end of non-void function
make[3]: *** [utils.o] Error 1
make[2]: *** [libraries] Error 255
make[1]: *** [phase1] Error 2
make: *** [phase1] Error 255

Looking at /usr/include/time.h tells that CLK_TCK is considered obsolete unless 'if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K'and that CLOCKS_PER_SEC is more correct.

I replaced CLK_TCK by CLOCKS_PER_SEC.

chitlesh(src)[0]$grep CLK_TCK /usr/include/sys/time.h
chitlesh(src)[0]$grep CLK_TCK /usr/include/time.h
# ifndef CLK_TCK
# define CLK_TCK CLOCKS_PER_SEC

It appears to be using an obsolete constant here.

'make' successfully continues.

In the end I fall on

****************************************************************
* Module : NAVIGATOR
* Comment : The motion planner!
****************************************************************

--> Starting make
---- Assigning dependencies in NAVIGATOR
---- Compiling navigator_interface.c to navigator_interface.o (C)
---- Archiving navigator_interface.o into libnavigator_interface.a (C)
---- Compiling conventional.c to conventional.o (C)
---- Compiling planner.c to planner.o (C)
---- Compiling trajectory.c to trajectory.o (C)
cc1: warnings being treated as errors
trajectory.c: In function ‘carmen_planner_util_test_trajectory’:
trajectory.c:74: warning: ‘point.r_vel’ is used uninitialized in this function
trajectory.c:74: warning: ‘point.t_vel’ is used uninitialized in this function
trajectory.c:74: warning: ‘point.theta’ is used uninitialized in this function
make[3]: *** [trajectory.o] Error 1
make[2]: *** [libraries] Error 255
make[1]: *** [phase1] Error 2
make: *** [phase1] Error 255

The only way to overcome this is to turn off the warnings as errors flag -Werror in Makefile.conf.

4 comments:

Anonymous said...

...this helps plenty ...thanks!

Anonymous said...

I am now trying to install Carmen(Carnegie Mellon Robot Navigation Toolkit) on Fedora4, but there are errors encountered. I found that on your blog you show your experience on installing Carmen on Fedora. Could you please help me to solve the problems?
The following are error list:

****************************************************************
* Module : MAP_EDITOR
* Comment : Provides photoshop-like map editor.
****************************************************************

--> Starting make
---- Compiling map_editor_graphics.c to map_editor_graphics.o (C)
map_editor_graphics.c:41:23: error: gdk_imlib.h: No such file or directory
map_editor_graphics.c: In function ?armen_graphics_generate_pixmap??
map_editor_graphics.c:196: error: ?dkImlibImage??undeclared (first use in this function)
map_editor_graphics.c:196: error: (Each undeclared identifier is reported only once
map_editor_graphics.c:196: error: for each function it appears in.)
map_editor_graphics.c:196: error: ?mage??undeclared (first use in this function)

I searched for gdk_imlib.h, but I cannot find anything on Fedora4. Can anypne tell me why? Thanks!
Sincerely

Chitlesh GOORAH said...

chitlesh(~)[0]$locate gdk_imlib.h
/usr/include/gdk_imlib.h
chitlesh(~)[0]$rpm -qf /usr/include/gdk_imlib.h
imlib-devel-1.9.13-27

you are missing imlib-devel

Anonymous said...

徵信, 徵信社, 感情挽回, 婚姻挽回, 挽回婚姻, 挽回感情, 徵信, 徵信社, 徵信, 捉姦, 徵信公司, 通姦, 通姦罪, 抓姦, 抓猴, 捉猴, 捉姦, 監聽, 調查跟蹤, 反跟蹤, 外遇問題, 徵信, 捉姦, 女人徵信, 外遇問題, 女子徵信, 外遇, 徵信公司, 徵信網, 徵信, 徵信社, 外遇蒐證, 抓姦, 抓猴, 捉猴, 調查跟蹤, 反跟蹤, 感情挽回, 挽回感情, 婚姻挽回, 挽回婚姻, 感情挽回, 外遇沖開, 徵信, 徵信, 徵信社, 抓姦, 徵信, 徵信社, 外遇蒐證, 外遇, 通姦, 通姦罪, 贍養費, 徵信, 徵信社, 徵信社, 抓姦, 徵信社, 徵信社, 徵信, 徵信, 徵信公司, 徵信社, 徵信, 徵信公司, 徵信社, 徵信社, 徵信社, 徵信社, 徵信社, 徵信公司, 徵信社, 徵信, 徵信, 徵信公司, 女人徵信, 外遇, 外遇, 外遇, 外遇

徵信, 徵信網, 徵信社, 徵信網, 徵信, 徵信社, 外遇, 徵信, 徵信, 徵信社, 抓姦, 徵信, 徵信社, 外遇, 徵信社, 抓姦, 徵信社, 徵信公司, 徵信, 徵信社, 徵信公司, 徵信, 徵信社, 徵信公司, 徵信社, 徵信社, 徵信社, 徵信社, 徵信, 徵信社, 徵信社, 徵信社, 徵信,