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

How to use ROS nodes (slam_gmapping) in Qt Creator GUI

asked 2014-05-30 17:51:20 -0600

TS gravatar image

updated 2014-05-30 20:57:33 -0600

Hamid Didari gravatar image

Hello everyone,

I’m really new to the ROS and I want to use ROS for my research studies. Basically I hope to use SLAM package in ROS. Can anyone please be kind enough to give me A-Z instructions to use SLAM package first. Then I want to know how I use this in my own GUI created by Qt creator. In order to use SLAM in ROS what kind of sensors must be used (LRF, Odometry data, IMU)

Thank you very much.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-05-30 20:52:06 -0600

Hamid Didari gravatar image

updated 2014-05-30 21:06:09 -0600


Gmapping need's two topics which provide laser scanner and odometry . usually use lidar sensor for laser scanner . if you want to use only laser scanner you can use Hector_Mapping .

for using Qt Creator GUI in Ros please see this question.

if you want to subscribe map or pose topic in your gui you can build one timer in your code and call ros::spinOnce() every 10ms.

note: your gui use app.exec() and if you use ros::spin() then your gui doesn't work .

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-05-30 17:51:20 -0600

Seen: 1,270 times

Last updated: May 30 '14