Robotics StackExchange | Archived questions

Which Barometer hardware does ROS support?

Hi, I am new to ROS, and wanna use ros to build a UAV, I searched the sensors the ros support, but I did not see the barometer list that ros support(driver included). Does anyone have done this before and could give me some advice

Thanks

Wu

Asked by wuxiong2 on 2016-04-07 19:50:54 UTC

Comments

Any help is appreciated

Asked by wuxiong2 on 2016-04-08 00:49:34 UTC

@wuxiong2: please only post answers to your question if you're actually answering it. Otherwise use comments.

Asked by gvdhoorn on 2016-04-08 02:43:09 UTC

Answers

If you don't find barometers supported in ROS, you could build the necessary "drivers" yourself if you had time. Assuming you don't have time enough to spend on that, my first thought is to acquire de barometer data in a microprocessor (for example, an arduino) and creating a custom message that, once its fields were filled up, the ROS master could get the information via rosserial_arduino.

http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv

http://wiki.ros.org/rosserial_arduino

Also, if you don't have any examples of how custom messages work in Arduino and how to set the code, I recently made some questions and answers that will help you:

http://answers.ros.org/question/229511/how-to-use-custom-message-arduino-solved/

http://answers.ros.org/question/229600/rosserial-connection-not-working-with-custom-messages-solved/

Good luck!

Asked by thepirate16 on 2016-04-08 01:45:19 UTC

Comments

Thanks, I will try

Asked by wuxiong2 on 2016-04-08 19:42:28 UTC