ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the name of the class and that of the object?

Have you created an object before you try the members/member functions? This is one case where such a compiler error occurs.

ROS is not a compiler or IDE. So when you say, ROS doesn't like something, it can not be the case.

Essentially what you are doing when you say, "I converted it to ROS", is -

  1. Using a few ros functions/classes (with their prototypes in the headers),
  2. Linking in a few shared libraries with the definitions/implementations of these functions/classes.

From the point of view of c++, ROS is a library, and hence using ROS in a program can not create compilation errors that were not already present (except in the rarest of circumstances).

Have a great day.