Ask Your Question
0

ButtonEvent

asked 2015-05-29 07:53:56 -0500

Anis gravatar image

Hi

I am using ROS Hydro I wanted to subscribe to kobuki_msgs::ButtonEvent using roscpp client. However, the compiler does not recognize this event and throws an error message

error: ‘ButtonEvent’ in namespace ‘kobuki_msgs’ does not name a type

I already successfully subscribed to all others events like kobuki_msgs::BumperEvent, kobuki_msgs::CliffEvent, but I am not able to use kobuki_msgs::ButtonEvent

I would appreciate any help on this matter.

Thanks Anis

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-05-29 14:00:07 -0500

tfoote gravatar image

Have you included the header file "kobuki_msgs/ButtonEvent.h"? It's a different header file than for BumperEvent and CliffEvent.

edit flag offensive delete link more

Comments

Thank you for the answer. It was actually missing. Now, everything works after I included the header file. In fact, I was including the other events header files in a superclass, and I did not figure out in the sub-class that the header file of Button is missing.

Thank you

Anis gravatar image Anis  ( 2015-05-29 20:25:48 -0500 )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

1 follower

Stats

Asked: 2015-05-29 07:53:56 -0500

Seen: 99 times

Last updated: May 29 '15