Ask Your Question
0

Subscriber topic field

asked 2015-10-15 06:20:18 -0600

Edmodi gravatar image

Hi, to optimize cpu cost, I would like subscribe to a field of topic. Although it is not the exact case, the problem is subscribe to topic type sensor_msgs Temperature containing a header field. It is posible? I'm try with rostopic echo and run but with rostopic info thows a non-existent topic.

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-15 07:13:57 -0600

gvdhoorn gravatar image

No, you cannot subscribe to a single field in a message.

Although it is not the exact case, the problem is subscribe to topic type sensor_msgs Temperature containing a header field.

I don't really understand what you are trying to say. Perhaps if you describe it more clearly, we can help come up with some alternatives.

edit flag offensive delete link more

Comments

I wanna to say that my message type was more complex so to explaint my questions I have given the Temperature type as example. Thansk for your answers

Edmodi gravatar imageEdmodi ( 2015-10-16 01:02:21 -0600 )edit

Well, in any case: you cannot subscribe to a single field. If this is a custom msg, you could always consider splitting it up into multiple messages (and synchronise later if required, using the timestamp).

gvdhoorn gravatar imagegvdhoorn ( 2015-10-18 05:36:30 -0600 )edit

Ok, I will do it. Thanks

Edmodi gravatar imageEdmodi ( 2015-10-19 05:50:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-10-15 06:20:18 -0600

Seen: 117 times

Last updated: Oct 15 '15