Hi,

I have used the solutions provided for the odom_subscriber.cpp but the program runs into error while compiling:

error: ‘nav_msgs’ does not name a type void counterCallback(const nav_msgs::Odometry::ConstPtr& data) error: expected unqualified-id before ‘::’ token void counterCallback(const nav_msgs::Odometry::ConstPtr& data) error: expected ‘)’ before ‘::’ token error: expected initializer before‘::’ token

Could someone enlighten me where the problem is? Thank you!

Cheers, Yao

asked 08 Aug, 09:21

yaolei989's gravatar image

yaolei989
0
accept rate: 0%

closed 03 Oct, 16:21

marcoarruda's gravatar image

marcoarruda ♦♦
1764

1

Hi,

have you tried to include the Odometry with #include <nav_msgs/Odometry.h>?

If so, could you provide update your question with the source code of your file?

By looking at the code we could better diagnose the problem.

(16 Aug, 18:03) ralves@theco... ♦♦

The question has been closed for the following reason "Inactivity" by marcoarruda 03 Oct, 16:21

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1

question asked: 08 Aug, 09:21

question was seen: 131 times

last updated: 03 Oct, 16:21

Related questions

powered by OSQA