[ROS] C++ 오류terminate called after throwing in stance of'ros: T i meNot Initialized Exception'

606 단어 ROSC++
terminate called after throwing an instance of 'ros::TimeNotInitializedException'
  what():  Cannot use ros::Time::now() before the first NodeHandle has been created or ros::start() has been called.  If this is a standalone app or test that just uses ros::Time and does not communicate over ROS, you may also call ros::Time::init()
원인:class에서 nodehandle을 정의했습니다
대책:nodehandle 위주로 즉시 생성되며,class에 넣습니다.

좋은 웹페이지 즐겨찾기