rviz:symbollookuperror:rviz:undefinedsymbol의 해결 방법

1913 단어 로봇ros 학습

1 질문:


소프트웨어 목록이 업데이트된 후 rviz를 실행하면 다음 오류가 발생하지 않습니다.
rviz: symbol lookup error: rviz: undefined symbol: _ZN4rviz13VisualizerApp6setAppEP12QApplication

또는 "rosrun rviz rviz"를 입력하여 시작 후 octomap_ 불러오기rviz_플러그인/OccupancyGrid 오류:
[ERROR] [1526449775.478040646]: PluginlibFactory: The plugin for class 'octomap_rviz_plugin/OccupancyGrid' failed to load. 
 Error: Failed to load library /opt/ros/indigo/lib//liboctomap_rviz_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. 
 Error string: Could not load library (Poco exception = /opt/ros/indigo/lib//liboctomap_rviz_plugins.so: undefined symbol: _ZN4rviz10MapDisplay6updateEff)

2 해결:


먼저 다음 명령을 입력하여 종속성을 수정합니다.
sudo apt-get install -f

그런 다음 다음 다음 명령을 사용하여 필요하지 않은 설치 파일을 삭제합니다.
sudo apt-get autoremove

마지막으로 ROS가 비어 있는 builds와 devel 폴더를 삭제하여 다시 컴파일합니다. (일반적인 작업 공간은catkin_ws 폴더 아래에 있습니다.)
rm -r devel
rm -r build
catkin_make

마지막으로 터미널을 다시 열고 rviz를 시작하면 됩니다.

좋은 웹페이지 즐겨찾기