Robotics StackExchange | Archived questions

treat eclispe

I stay well with eclipse,I can build run and debug,but I can not stop it from jerking off!eg I code `

ros::init(argc,argv,"turtle_move");

eclipse told me

:Invalid arguments ' Candidates are: void init(const ? &, const ? &, ?) void init(int &, char * *, const ? &, ?) '

I code

ros::Publisher pub=Nh.advertise("/turtle1/cmd_vel",10);

eclipse told me

Multiple markers at this line
    - Invalid arguments ' Candidates are: ros::Publisher advertise(const ? &, ?, bool) ros::Publisher advertise(ros::AdvertiseOptions 
     &) ros::Publisher advertise(const ? &, ?, const ? &, const ? &, const ? &, bool) '
    - Symbol 'advertise' could not be resolved

uncountable situations like this,omfg

Asked by unicornair on 2016-07-16 02:31:47 UTC

Comments

Did you follow the instructions on how to create an Eclipse project? http://wiki.ros.org/IDEs#Eclipse Depending on the ROS version you use follow either the rosbuild or catkin instructions. Groovy, hydro, indigo, jade, and kinetic use catkin.

Asked by Chrissi on 2016-07-16 05:35:12 UTC

Answers