ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Tinyxml: Problem updating code from diamonback to electric.

asked 2012-05-16 23:12:36 -0600

Jep gravatar image

Hi all,

I have a node that is using tinyxml to read and xml file.

That node works perfectly in diamonback, but I need to update it to electric, so I follow the instrucionts in http://www.ros.org/wiki/tinyxml :

1- Remove tinyxml dependency in manifest.

2- Change the header file which is included... Now is just:

#include <tinyxml.h>

3- Link against the library in the CMakeLists...

target_link_libraries(master tinyxml)

It compiles without problems, but when running the node, the behaviour is not the expected and gives some errors.

It seems like the function Value() is not behaving the same way it was in diamondback...

Do you think I should do any change more than what I have already done? Or maybe the library that was using diamondback and the one which installs electric are slightly different?

I will appreciate any help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-22 22:39:32 -0600

Jep gravatar image

Hi,

I finally solved this by myself.

It was a problem with a C define in tinyxml library.

If you have some problems with the tinyxml library make sure that TIXML_USE_STL is defined in the .h file.

#ifndef TIXML_USE_STL
    #define TIXML_USE_STL
#endif
edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-05-16 23:12:36 -0600

Seen: 290 times

Last updated: May 22 '12