vmatos / rosserial_tivac

rosserial package for the TivaC Launchpad boards
3 stars 1 forks source link

rosservice in energia and question about chatter. #5

Closed altineller closed 5 years ago

altineller commented 5 years ago

Hello,

Is it possible to make a rosservice with energia?

In the simple chatter example, there is chatter.publish( &str_msg ); in the loop statement. Does this send the str_msg every time the loop executes, or every time someone listens for it?

In other words, I would like to make a status string, that the user can request, and it will send. I dont want it to be send every time, but whenever it is requested for.

There are also cases where I would like to send a parameter to the board, and get a result from it. (Like for setting PID variables)

Any ideas/recomendations/help greatly appreciated.