Eclipse IDE problem
Hi everyone! I configurate eclipse 3.8 for catkin workspace. talker.cpp and listener.cpp (from examples) compile and work fine (build by eclipse), but herewith eclipse find few errors. In talker:
LINE: ros::Publisher chatter_pub = n.advertise < std_msgs::String > ("chatter", 1000);
Description Resource Path Location Type
Invalid arguments '
Candidates are:
ros::Publisher advertise(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, bool)
ros::Publisher advertise(ros::AdvertiseOptions &)
ros::Publisher advertise(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, const boost::function<void (const ros::SingleSubscriberPublisher &)> &, const boost::function<void (const ros::SingleSubscriberPublisher &)> &, const boost::shared_ptr<const void> &, bool)
' talker.cpp /Project@build/[Source directory]/beginner_tutorials/src line 45 Semantic Error
In listener:
LINE: ros::Subscriber sub = n.subscribe("chatter", 1000, chatterCallback);
Description Resource Path Location Type
Invalid arguments '
Candidates are:
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(#0), #1 *, const ros::TransportHints &)
ros::Subscriber subscribe(ros::SubscribeOptions &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(#0)const, #1 *, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(const boost::shared_ptr<const #0> &), #1 *, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(const boost::shared_ptr<const #0> &)const, #1 *, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(#0), const boost::shared_ptr<#1> &, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(#0)const, const boost::shared_ptr<#1> &, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(const boost::shared_ptr<const #0> &), const boost::shared_ptr<#1> &, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (#1::*)(const boost::shared_ptr<const #0> &)const, const boost::shared_ptr<#1> &, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (*)(#0), const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, void (*)(const boost::shared_ptr<const #0> &), const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, const boost::function<void (const boost::shared_ptr<const #0> &)> &, const boost::shared_ptr<const void> &, const ros::TransportHints &)
ros::Subscriber subscribe(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, ?, const boost::function<void (#1)> &, const boost::shared_ptr<const void> &, const ros::TransportHints &)
' listener.cpp /Project@build/[Source directory]/beginner_tutorials/src line 79 Semantic Error
What's the matter?