catkin_make error : undefinded...

asked 2017-03-06 06:51:40 -0600

Cattonboom gravatar image

updated 2017-03-08 03:17:39 -0600

hello,I want to control my irobot-create2 to move,so i use the tutorial:https://github.com/CentroEPiaggio/irobotcreate2ros,,but it is error when i catkin_make,such as:

CMakeFiles/basic_commands.dir/src/basic_commands.cpp.o: In function `change_mode(std::string)':
basic_commands.cpp:(.text+0x94): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0x178): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0x278): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0x374): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0x43c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0x538): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0x5f8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0x6f4): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0x7b4): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0x8b0): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0x970): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0xa6c): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0xb2c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0xc28): undefined reference to `ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > const&, char const*, int, char const*)'
basic_commands.cpp:(.text+0xcf8): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text+0xe5c): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
CMakeFiles/basic_commands.dir/src/basic_commands.cpp.o: In function `main':
basic_commands.cpp:(.text+0x1178): undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
basic_commands.cpp:(.text+0x11fc): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::string const&, ros::console::levels::Level)'
basic_commands.cpp:(.text ...
(more)
edit retag flag offensive close merge delete

Comments

i use the tutorial

which tutorial?

gvdhoorn gravatar imagegvdhoorn ( 2017-03-06 10:45:45 -0600 )edit

sorry, i forgot write it,it is:https://github.com/CentroEPiaggio/irobotcreate2ros

Cattonboom gravatar imageCattonboom ( 2017-03-06 20:23:44 -0600 )edit

This seems very specific to a community-contributed tutorial that is hosted on an organisation of a research institution. Have you asked the authors of the node what could be wrong?

gvdhoorn gravatar imagegvdhoorn ( 2017-03-07 01:58:30 -0600 )edit

I have not asked the aothor,i am a tiro.but i will try to do this.and thanks for your reply.

Cattonboom gravatar imageCattonboom ( 2017-03-07 02:35:05 -0600 )edit