报错解决
遇到的报错
出门两双鞋
这个作者很懒,什么都没留下…
展开
-
ERROR: cannot launch node of type [robot_state_publisher/state_publisher]解决办法
在下载的Gazebo ROS Demos中,运行roslaunch rrbot_description rrbot_rviz.launch报错ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: Cannot locate node of type [state_publisher] in package [robot_state_publisher]. Make sure file exists in原创 2021-05-13 08:45:32 · 1729 阅读 · 2 评论 -
ORB_SLAM2 ROS Example 编译 CMake Error at CMakeLists.txt:37 (message): OpenCV > 2.4.3 not found解决办法
报错CMake Error at CMakeLists.txt:37 (message):OpenCV > 2.4.3 not found.解决办法CMakeLists.txt添加set(OpenCV_DIR /$PATH to opencv/build)find_package(OpenCV QUIET)原创 2021-08-04 19:25:41 · 4749 阅读 · 3 评论 -
ORB_SLAM2_modified编译
CMake Error at CMakeLists.txt:37 (message):OpenCV > 2.4.3 not found.– Configuring incomplete, errors occurred!/ORBSLAM2_with_pointcloud_map/ORB_SLAM2_modified/CMakeLists.txt 33行find_package(OpenCV 3.0 QUIET)并添加SET(CMAKE_CXX_STANDARD 14)改为set(O原创 2021-08-27 22:57:24 · 1200 阅读 · 2 评论 -
rosdep update报错解决方法
rosdep updateERROR: error loading sources list:The read operation timed out尝试了连接热点,修改hosts,科学上网等都无法解决解决方法:sudo sed -i "s/raw.githubusercontent.com/raw.ctl.app/g" /usr/lib/python3/dist-packages/rosdistro/__init__.py sudo sed -i "s/raw.githubusercont原创 2021-05-19 09:48:57 · 362 阅读 · 0 评论 -
AttributeError: ‘dict_keys‘ object has no attribute xxx 整理
AttributeError:'dict_keys' object has no attribute 'sort'将a.sort()改为sorted(a)AttributeError:'dict_keys' object has no attribute 'remove'TypeError: 'dict_keys' object is not subscriptable将a改为list(a)原创 2021-08-04 19:30:30 · 900 阅读 · 0 评论 -
ORB-SLAM3 ROS Example
git clone git://github.com/UZ-SLAMLab/ORB_SLAM3.git将/src/Localmapping.cc中628行、/src/CameraModels/KannalaBrandt8.cpp534行x3D = x3D_h.get_minor<3,1>(0,0) / x3D_h(3);改为x3D = cv::Matx31f(x3D_h.get_minor<3,1>(0,0)(0) / x3D_h(3), x3D_h.get_minor<3原创 2021-08-23 19:54:22 · 588 阅读 · 0 评论 -
orb_slam2_pointcloud 编译错误
/ORB_SLAM2_PointCloud/src/pointcloudmapping.cc:42:24: error: ‘make_shared’ is not a member of ‘boost’42 | globalMap = boost::make_shared< PointCloud >( );| ^~~~~~~~~~~解决办法:添加#include <boost/make_shared.hpp>...原创 2021-08-29 10:11:26 · 675 阅读 · 0 评论 -
can not be used when making a shared object; recompile with -fPIC的解决方法
在运行roslaunch moveit_setup_assistant setup_assistant.launch发现process[moveit_setup_assistant-2]: started with pid [13920]/opt/ros/noetic/lib/moveit_setup_assistant/moveit_setup_assistant: error while loading shared libraries: libfcl.so.0.6: cannot open s原创 2021-05-18 17:11:08 · 1620 阅读 · 3 评论 -
Resource not found: roslaunch的解决方法
按照ROS教程学习时,在运行roscore时出现问题$ roscoreResource not found: roslaunchROS path [0]=/opt/ros/noetic/share/rosROS path [1]=/opt/ros/noetic/shareThe traceback for the exception was written to the log file之前的步骤中进行过$ sudo apt-get install python3-roslaunch只需原创 2021-05-12 08:45:19 · 29277 阅读 · 18 评论 -
g2o编译错误
/ORBSLAM2_with_pointcloud_map/g2o_with_orbslam2/g2o/types/slam2d/edge_se2_pointxy_bearing.cpp:51:39: error: cannot convert ‘Eigen::Rotation2D::Scalar’ {aka ‘double’} to ‘const Rotation2Dd&’ {aka ‘const Eigen::Rotation2D&’}51 | t.setRotation(t.原创 2021-08-27 22:16:34 · 707 阅读 · 0 评论 -
error: ‘usleep‘ was not declared in this scope解决办法
error: ‘usleep’ was not declared in this scope对应.h文件中添加#include <unistd.h>原创 2021-08-04 20:19:58 · 2439 阅读 · 0 评论 -
Cannot load command parameter [robot_description]解决方法
在github上下载一个ros仿真小车,运行时Invalid tag: Invalid tag: Cannot load command parameter [robot_description]参考 https://wiki.ros.org/noetic/Migration, .launch文件中xacro.py应改为xacro原文件中为<param name="robot_description" command="$(find xacro)/xacro.py '$(find cars原创 2021-05-19 16:54:08 · 9541 阅读 · 0 评论