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

Hi there, i know the question is dumb but is there anyone out there who can guide me to interface my IMU, encoders with ROS. I can not find any tutorial on it.

asked 2016-01-12 06:05:54 -0600

hashim gravatar image

i want to make a 3D map of the environment using a 2D laser scanner. For this I have to setup my robot first to get the odometry and orientation and a sonar sensor to measure the height from the ground. So i need to interface some sensors with ROS but i dnt know how

edit retag flag offensive close merge delete

Comments

How are these sensors connected to your computer? What kind of robot are you using?

fsteinhardt gravatar image fsteinhardt  ( 2016-01-12 18:12:22 -0600 )edit

That is what the question is, how should i connect those sensors to computer. Have i to use usb serial communication with every sensor to get its data into computer ? And then after getting into the computer whats the way to get this data into Ros

hashim gravatar image hashim  ( 2016-01-12 19:09:05 -0600 )edit

I have my own quadrotor, i am not using any specific ros robots

hashim gravatar image hashim  ( 2016-01-12 19:12:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-01-13 04:31:02 -0600

fsteinhardt gravatar image

updated 2016-01-13 06:11:04 -0600

It all depends.

Hardware: Laserscanners can be connected over a serial connection or USB or Ethernet, depending on the type of the scanner, IMUs are often connected over Serial or USB, low level sensors like switches or wheel encoders are often connected to a microcontroller which is connected to the main PC.

Software: You need ROS-drivers for the Sensors, for some laserscanners and IMUs you can find ROS packages, or you can program them yourself. Some motorcontrollers have inputs for wheel-encoders.

And now for something completely different: A IMU alone is not able to measure a position in space, and to assemble a 3D scan from a flying not really known position will not be easy. Why don't you try to generate a 3D scan from a fixed position first.

Edit:

for a non flying test: I meant keep the position fixed, but change the orientation of the scanner (tilt it or rotate it), then you don't start with both problems of measuring the orientation and the position at the same time.

Do you know laser_assembler ? This could start you on the software side.

edit flag offensive delete link more

Comments

this means that i have to get those specific IMUs which are supported by ROS or which has their drivers for ROS. I will be using the SONAR sensor to get the height measurement of the QUAD. how can i guarantee a 3D scan until I have the height measurement.

hashim gravatar image hashim  ( 2016-01-13 05:54:13 -0600 )edit

I think from fixed position, only 2D scan can be guaranteed.

hashim gravatar image hashim  ( 2016-01-13 05:55:13 -0600 )edit

thanku so much the help! actually I was trying to reproduce what is shown in this video https://www.youtube.com/watch?v=i2UIN...

hashim gravatar image hashim  ( 2016-01-13 08:02:15 -0600 )edit

is it possible that I use arduino to get my sensor values into ROS ?

hashim gravatar image hashim  ( 2016-01-13 08:55:53 -0600 )edit

Please have a look at the rosserial package and the supporting tutorials.

asusrog gravatar image asusrog  ( 2016-03-01 13:24:07 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-12 06:05:54 -0600

Seen: 251 times

Last updated: Jan 13 '16