Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » ROS + Eclipse Issues(Creating ROS code in eclipse leading to issues)
ROS + Eclipse Issues [message #1834528] Wed, 11 November 2020 14:12 Go to next message
Eclipse UserFriend
I want to preface this by saying I am new to ROS and eclipse. I am working on a project and the simple command of ROS_INFO_STREAM building in my program. I have set up the proper workspace (according to the ROS Wiki) and I cannot figure out the issue.

The error is listed as followed:
Quote:

" Invalid arguments ' Candidates are: void print(ros::console::FilterBase *, void *, enum ros::console::levels::Level, const ? &, const char *, int, const char *) void print(ros::console::FilterBase *, void *, enum ros::console::levels::Level, const char *, int, const char *, const char *, ...) ' "


Other ros commands such as "ros::init" or "ros::NodeHandle" work and compile just fine, but for some reason the ROS_INFO_STREAM isn't working for me.

For Reference, this is the sample code that I was testing my system on.
#include <ros/ros.h>

int main(int argc, char ** argv){
   ros::init(argc,argv, "hello_eclipse");
   ros::NodeHandle nh;

   ROS_INFO_STREAM("Hello eclipse");

   return 1;
}


Any help would be appreciated.
Re: ROS + Eclipse Issues [message #1834537 is a reply to message #1834528] Wed, 11 November 2020 23:39 Go to previous message
Eclipse UserFriend
You seem to be new to C/C++ programming.
For example, ros::NodeHandle nh is a declaration.
In C, it just causes some space to be allocated.
In C++, it will also execute the class initialization method for ros::NodeHandle.


I don't have ROS and don't really want to download it.

1) How do you know ros::init and ros::NodeHandle compile just fine?
Because you didn't get any specific error messages regarding them?
If you are getting any compile errors then nothing has been compiled.

2) I'm guessing that ROS_INFO_STREAM is a complicated macro
that eventually tries to print something and is using the wrong parameters.
It isn't possible to say what specifically without further information.

You might find someone here who can help you but
you probably would have better luck asking at a site devoted to ROS.



Previous Topic:Hello World in Assembly in Eclipse CDT: "make all" terminated with exit code 2
Next Topic:Different indentation width per file
Goto Forum:
  


Current Time: Sat Jul 05 08:43:08 EDT 2025

Powered by FUDForum. Page generated in 0.75032 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top