Home | Tutorials | Wiki | Issues
Ask Your Question
0

Temperature sensor and sensor plugin

asked 2013-10-30 08:37:43 -0500

GuidoG gravatar image

updated 2013-10-30 08:38:42 -0500

How can create a a simple temperature sensor? A simple sensor that read a custom message with an information of the temperature that is the output of a world plugin.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-11-01 18:37:06 -0500

nkoenig gravatar image

The easiest solution is to create a model plugin that receives and outputs messages that you need.

Model plugin tutorial

Custom message tutorial for creating custom messages.

edit flag offensive delete link more

Comments

The temperature is outpuded in a custom message by a world plug in my world. Then I'm trying to find a way to read this message: my first idea was to write a sensor plugin, but i need to write also a specific sensor to do that, right?

GuidoG gravatar imageGuidoG ( 2013-11-04 04:24:38 -0500 )edit

Yeah, you'd have to write a sensor. I think you can bypass writing a sensor by just writing a model plugin. The model plugin can read the message from the world, and process it as necessary.

nkoenig gravatar imagenkoenig ( 2013-11-07 15:55:50 -0500 )edit

I can't find anywhere information abuot the creation of a new sensor. Someomne can help me?

GuidoG gravatar imageGuidoG ( 2013-11-18 04:26:36 -0500 )edit

Take a look at SensorsIface.hh

nkoenig gravatar imagenkoenig ( 2013-11-18 16:42:08 -0500 )edit
Login/Signup to Answer

Question Tools

3 followers

Stats

Asked: 2013-10-30 08:37:43 -0500

Seen: 445 times

Last updated: Nov 01 '13