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

JaneSheard's profile - activity

2016-09-07 08:45:40 -0500 received badge  Famous Question (source)
2016-09-07 08:45:40 -0500 received badge  Notable Question (source)
2016-09-07 08:45:40 -0500 received badge  Popular Question (source)
2016-04-29 06:16:18 -0500 received badge  Famous Question (source)
2016-04-29 04:50:17 -0500 received badge  Commentator
2016-04-29 04:50:17 -0500 commented answer Run QT project with ROS publisher/subscriber

Obviously remember to #include "ros/ros.h" and any other includes you may need. But all I needed was about 6 ros packages added in my .pro file and everything built.

If you're using an image publisher and using cv_bridge you may need to re-cmake your opencv build directory without openCL

2016-04-29 04:48:14 -0500 commented answer Run QT project with ROS publisher/subscriber

Right click on your project header or .pro file (like you would to add a new file) and choose add library. Choose the last option for system package, and add roscpp. I would check that this works by calling ros::init and if this works then you should be able to use ros!

2016-04-29 04:46:19 -0500 commented answer Run QT project with ROS publisher/subscriber

@rosWang you're using qmake with ros? The solution is actually quite simple - I was surprised. Install ROS as normal, if ubuntu desktop-full should install all your packages. Ubuntu ARM boards may need packages installing separately so make sure all your packages are good to go.

2016-04-25 05:54:52 -0500 received badge  Enthusiast
2016-04-25 05:54:52 -0500 received badge  Enthusiast
2016-04-25 05:54:52 -0500 received badge  Enthusiast
2016-04-25 05:54:52 -0500 received badge  Enthusiast
2016-04-21 05:17:12 -0500 commented question Add Ros library to qt creator

@anil did you ever fix this? I think I'm trying to do something very similar

2016-04-20 04:54:58 -0500 asked a question Qmake and ROS project

I need to run ros code in my existing qmake qt project, without cmake/catkin_make.

All I need is to add relevant paths/libraries into my .pro file to run a ros publisher/subscriber.

I have tried INCLUDEPATH to the roscpp and rospy folder, and also tried as LIBS.

I get 'undefined reference to' for any ros code. I have also used #include "ros/ros.h"

Does anyone have information on how to use ros code in a QMAKE project?

2016-04-20 04:33:19 -0500 commented answer Run QT project with ROS publisher/subscriber

My project supervisor has recommended using the qmake project, so I now need to figure out how to run ros code in a qmake project and cant find much help online. Something about including paths to roscpp and rospy?

2016-04-15 05:44:48 -0500 received badge  Notable Question (source)
2016-04-14 14:32:26 -0500 commented answer Run QT project with ROS publisher/subscriber

~ configure the cmake file to include the ros package?

2016-04-14 14:31:30 -0500 commented answer Run QT project with ROS publisher/subscriber

@ Mario so once you've created your catkin package, do you move/copy all your existing QT cpp and header files into the package and add them to the CMake file? I am considering trying this, but also wondering if I modify my current QT project to use CMake and not qmake whether I can then ~

2016-04-14 09:24:37 -0500 received badge  Popular Question (source)
2016-04-14 07:42:40 -0500 commented answer Run QT project with ROS publisher/subscriber

Ah, I'm using qmake for my qt project.. I'm guessing I need to change this to CMake and it'll be in the right direction?

2016-04-14 07:22:07 -0500 commented answer Run QT project with ROS publisher/subscriber

Don't I have to open the ros package in QT using my CMakeLists.txt? How can I just add ros code to an existing QT project without first making a ros package and using CMake?

2016-04-14 06:52:47 -0500 received badge  Editor (source)
2016-04-14 06:21:55 -0500 commented answer Run QT project with ROS publisher/subscriber

My reply was too big, so I had to write a new answer but don't know how to quote/tag you in it :)

2016-04-14 06:21:20 -0500 answered a question Run QT project with ROS publisher/subscriber

I'll try my best to explain it all.

I have simply put in the #includes (eg ros/ros.h) and added a ros::intit(<variables>) statement into my current project main, I get 'undefined reference to ros::init(<variables>)'

My vision project is a normal <project>.pro with header and sources. The ros qt project built off the CMakeLists.txt so its layout is different.. I get many many errors when I put my ros talker.cpp code into my vision project so I'm guessing I'm missing some includes or libs in my pro file :/

I have ssh into the odroid and run a publisher/subscriber using terminal command line like rosrun and this does work. I just cant run qtcreator apparently and get a display warning.

Thank you for the information on images! I have also been shown cv_bridge.

I've setup my publisher project following the ros IDE instructions, remaking the CMakeLists.txt and using this to build a new project. When I googled the error it comes up as an Ubuntu bug that hasn't been fixed. It doesnt appear if I remake the .txt file each time I open qtcreator. A huge pain!

2016-04-14 05:25:17 -0500 asked a question Run QT project with ROS publisher/subscriber

Hi all,

I'm new to ROS. I have used the tutorials to make a catkin workspace with a publisher and subscriber cpp file. I have run these via terminal and they work fine. I have also created QT projects for them, and ran and they communicate.

My project involves a high speed vision system using QT for ball detection and tracking. I need to run a ROS publisher in this project on my laptop, and via wifi communicate with the subscriber in a QT project on an Odroid board (or vice versa), to send information about the located ball position/size/distance.

My questions are: 1. how can i put my ROS publisher into my existing QT project? 2. can I run QT after ssh into wifi? I get display errors. 3. can i send images from publisher to subscriber? 4. Everytime I want to run my current publisher/subscriber I have to remake my CMakeLists.txt file otherwise I get 'no executable specified' error - is this normal?

Thanks! :)


[EDIT]:

I'll try my best to explain it all.

I have simply put in the #includes (eg ros/ros.h) and added a ros::intit(<variables>) statement into my current project main, I get 'undefined reference to ros::init(<variables>)'

My vision project is a normal <project>.pro with header and sources. The ros qt project built off the CMakeLists.txt so its layout is different.. I get many many errors when I put my ros talker.cpp code into my vision project so I'm guessing I'm missing some includes or libs in my pro file :/

I have ssh into the odroid and run a publisher/subscriber using terminal command line like rosrun and this does work. I just cant run qtcreator apparently and get a display warning.

Thank you for the information on images! I have also been shown cv_bridge.

I've setup my publisher project following the ros IDE instructions, remaking the CMakeLists.txt and using this to build a new project. When I googled the error it comes up as an Ubuntu bug that hasn't been fixed. It doesnt appear if I remake the .txt file each time I open qtcreator. A huge pain!