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

problem in qt when added ros.h

asked 2011-10-23 20:35:05 -0500

abrsefid gravatar image

updated 2014-01-28 17:10:38 -0500

ngrennan gravatar image

i added ros/ros.h include in my qt and when i run the program ther are problem that : /usr/include/qt4/ros/ros.h:38: error: ros/time.h: No such file or directory and :

include "ros/rate.h"

include "ros/console.h"

include "ros/assert.h"

include "ros/types.h"

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
2

answered 2011-10-23 22:25:21 -0500

i added ros/ros.h include in my qt and when i run the program ther are problem that : /usr/include/qt4/ros/ros.h:38: error: ros/time.h: No such file or directory and :

This looks like you edited files in /usr/include, which you should never need to do! Anyway, either you didn't install ros or you didn't specify to the compiler where to find it. There is no way to help you without more details about what you did.

However, since it looks like you don't know what you are doing in general (I am sorry if I am wrong here), I would recommend to have a look into basic tutorials for programming c++ with ros.

edit flag offensive delete link more
0

answered 2011-10-23 22:47:57 -0500

abrsefid gravatar image

i used joystick class to control robot , when i add ros.h to use ros in my class or create a node to this , qt creator show this problem message

edit flag offensive delete link more
0

answered 2011-10-23 21:39:36 -0500

Mimax gravatar image

What are you trying to do? Do you have a QT Project and you want to include some ROS functionality? Or do you just want to use the QT-Creator as an IDE?

I suggest to have look at previous postings regarding the use of QT and ROS: ros.answer tags qt

and especially at this question and the suggestion to switch to qt-cmake. Qt-Creator and ROS

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-10-23 20:35:05 -0500

Seen: 1,826 times

Last updated: Oct 23 '11