robot_sim icon indicating copy to clipboard operation
robot_sim copied to clipboard

问题记录,为后来人提前踩坑,你不一定会遇到类似的问题

Open onwaiers opened this issue 3 years ago • 25 comments

版本说明

  • ubuntu 16.04
  • PCL 1.9.0
  • VTK 8.1.0
  • rosdistro kinetic
  • rosversion 1.12.17

问题1 error: reference to ‘detail’ is ambiguous

参考资料, 问题出现的原因是代码中使用了using namespace cv;

  • 解决方式就是删除using namespace cv,并在对应的位置补上cv::

问题2 /usr/local/lib/libvtkCommonCore-8.1.so.1: error adding symbols: DSO missing from command line

参考资料,但修改完仍有问题 ``对‘vtkRenderingOpenGL_AutoInit_Destruct()’未定义的引用,再参考资料,在~/catkin_ws/src/robot_sim/experiment/CMakeLists.txt的GPD_method_grasp和data_collection的target_link_libraries中添加${PCL_LIBRARIES}

## GPD_method_grasp ##
aux_source_directory(${PROJECT_SOURCE_DIR}/grasp/GPD_method/src GPD_method_SrcFiles)
add_executable(GPD_method_grasp ${GPD_method_SrcFiles})
add_dependencies(GPD_method_grasp ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}
target_link_libraries(GPD_method_grasp ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES})


# 数据采集部分 #
aux_source_directory(${PROJECT_SOURCE_DIR}/data_collection/src data_collection_SrcFiles)
add_executable(data_collection ${data_collection_SrcFiles})
add_dependencies(data_collection ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(data_collection ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} ${PCL_LIBRARIES}) 

onwaiers avatar Aug 25 '21 05:08 onwaiers

catkin_make编译出错

-- +++ processing catkin package: 'aruco' -- ==> add_subdirectory(aruco_ros/aruco) -- +++ processing catkin package: 'dh_robotics_ag95_description' -- ==> add_subdirectory(robot_sim/package/dh_robotics_gripper/dh_robotics_ag95_gripper/dh_robotics_ag95_description) -- Could NOT find roslaunch (missing: roslaunch_DIR) -- Could not find the required component 'roslaunch'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "roslaunch" with any of the following names:

roslaunchConfig.cmake
roslaunch-config.cmake

Add the installation prefix of "roslaunch" to CMAKE_PREFIX_PATH or set "roslaunch_DIR" to a directory containing one of the above files. If "roslaunch" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): robot_sim/package/dh_robotics_gripper/dh_robotics_ag95_gripper/dh_robotics_ag95_description/CMakeLists.txt:4 (find_package)

解决办法

重新安装rosbash

Kartoffelchen avatar Nov 27 '21 23:11 Kartoffelchen

我这边显示 robosim/package/dh_robotics_gripper路径下的CMakeLists.txt是损毁的。。。

Kartoffelchen avatar Nov 27 '21 23:11 Kartoffelchen

catkin_make 编译出错:

-- +++ processing catkin package: 'robot_sim' -- ==> add_subdirectory(robot_sim/experiment) -- Could NOT find serial (missing: serial_DIR) -- Could not find the required component 'serial'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "serial" with any of the following names:

serialConfig.cmake
serial-config.cmake

Add the installation prefix of "serial" to CMAKE_PREFIX_PATH or set "serial_DIR" to a directory containing one of the above files. If "serial" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): robot_sim/experiment/CMakeLists.txt:8 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/yp/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/yp/catkin_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:7852: cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

尝试安装ros--serial显示无法找到: Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros-noetic-serial

按照搜索到的方法,使用源码编译的方式将ros-noetic-serial安装到了 /usr/local/路径下,再执行catkin_make,仍然是上面展示的问题,没有解决。

Kartoffelchen avatar Nov 28 '21 13:11 Kartoffelchen

@onwaiers 牛!问题二参考你的,已解决,谢谢! 但问题一 我也参考那个没有解决,后来参考了这个:https://blog.csdn.net/zfjBIT/article/details/101055525 另外出现‘param_k_’ has incomplete type可参考:https://github.com/strands-project/strands_3d_mapping/issues/67

Wuui-97 avatar Dec 02 '21 09:12 Wuui-97

18.04编译的一些问题: 18.04需要修改一些东西: 1.error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’

  1. No such file or directory #include <moveit/move_group_interface/move_group.h> 修改 #include <moveit/move_group_interface/move_group_interface.h>

3.修改moveit #include <moveit/move_group_interface/move_group_interface.h> instead of what you have, in CMakeLists.txt, mine included:

find_package(catkin REQUIRED COMPONENTS moveit_ros_planning_interface moveit_ros_move_group ) 4.gpd cmake .. -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_FLAGS_DEBUG="-g -O0" -DCMAKE_CXX_FLAGS_DEBUG="-g -O0" 5.https://github.com/atenpas/gpd_ros/issues/3 6.System: Ubuntu 18.04 ROS distro: Melodic Following the steps on the MoveIt! getting started page https://ros-planning.github.io/moveit_tutorials/doc/getting_started/getting_started.html. I received the error "error: 'tf' has not been declared" in the pick_place_tutorial.cpp file.

Following the advice at https://answers.ros.org/question/301306/error-tf-has-not-been-declared/ I was able to fix the error by adding "#include <tf/transform_broadcaster.h>" to pick_place_tutorial.cpp.

Please fix this for future users. 7.将.h文件的using namespace cv去掉,修改一下代码

jzx-gooner avatar Dec 06 '21 08:12 jzx-gooner

@jzx-gooner 现在你配置的这个包能抓取吗

hqf2591102423 avatar Dec 24 '21 13:12 hqf2591102423

@hqf2591102423 目前开源的版本中GPD部分的抓取是不可用的,这几天在重构。主要是针对gpd_ros部分

Suyixiu avatar Dec 28 '21 15:12 Suyixiu

.error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’ 这个错误怎么改?

zhoumiaoqiang avatar Mar 14 '22 02:03 zhoumiaoqiang

.error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’ 这个错误怎么改?

问题已解决,一些关于gazobo的错误,可以参考这篇文章https://blog.csdn.net/weixin_44584250/article/details/108569842

zhoumiaoqiang avatar Mar 14 '22 08:03 zhoumiaoqiang

等我忙完这段时间就有时间重构了(鸽)要准备毕业工作,头发要掉光了

Suyixiu avatar Mar 22 '22 07:03 Suyixiu

代码已更新

Suyixiu avatar Apr 22 '22 07:04 Suyixiu

image 请问universal_robot怎样才可以在ubuntu18.04下编译成功,我编译的时候报错说该声明已经被遗弃,感觉是因为对18.04不兼容造成的,或者universal_robot有对应于melodic版本的吗

NoDoubleBird avatar Apr 25 '22 04:04 NoDoubleBird

image 请问universal_robot怎样才可以在ubuntu18.04下编译成功,我编译的时候报错说该声明已经被遗弃,感觉是因为对18.04不兼容造成的,或者universal_robot有对应于melodic版本的吗

问题已解决,虽然不知道什么原因,但多编译几次就成功了

NoDoubleBird avatar Apr 25 '22 11:04 NoDoubleBird

image image

我用的melodic,目前编译通过了,手眼标定加载不了rqt的标定插件,就略过了,直接做后面的,但是现在遇到了特别奇怪的问题,gazebo中加载不了banana,准确的说的加载进去但是看不到,因为点云数据可以看出香蕉确实存在,但肉眼看不到。请问有办法解决吗

NoDoubleBird avatar Apr 25 '22 13:04 NoDoubleBird

在执行roslaunch robot_sim grasp_world.launch进行仿真环境抓取时,报错[Err] [SystemPaths.cc:429] File or path does not exist["/home/suyixiu/catkin_ws/src/robot_sim/experiment/grasp/urdf/meshes/banana.dae"]查找launch文件未发现任何一个指定了路径的launch,但仍保留作者的banana位置,请问在哪里修改

carrie-smy avatar Apr 26 '22 09:04 carrie-smy

在执行roslaunch robot_sim grasp_world.launch进行仿真环境抓取时,报错[Err] [SystemPaths.cc:429] File or path does not exist["/home/suyixiu/catkin_ws/src/robot_sim/experiment/grasp/urdf/meshes/banana.dae"]查找launch文件未发现任何一个指定了路径的launch,但仍保留作者的banana位置,请问在哪里修改 首先在你的功能包中找到grasp.launch文件在里面找到加载的banana.urdf文件,或者sdf文件,把这个文件里包含的绝对路径/home/suyixiu/catkin_ws/src/robot_sim/experiment/grasp/urdf/meshes/banana.dae修改为你功能包所在的路径,即/home/你的名字/功能包名/src/robot_sim/experiment/grasp/urdf/meshes/banana.dae。你可以试试,改好后就不报错的,但是我的确看不到banana,但确实存在,不知道原因

NoDoubleBird avatar Apr 26 '22 09:04 NoDoubleBird

多谢,大意了只改了urdf,忘了在sdf中改了

所以你的香蕉可以正常显示吗,你用的是melodic系统吗

NoDoubleBird avatar Apr 29 '22 10:04 NoDoubleBird

image image

我用的melodic,目前编译通过了,手眼标定加载不了rqt的标定插件,就略过了,直接做后面的,但是现在遇到了特别奇怪的问题,gazebo中加载不了banana,准确的说的加载进去但是看不到,因为点云数据可以看出香蕉确实存在,但肉眼看不到。请问有办法解决吗

模型看不到的问题我也遇到过,可以参考这个https://blog.csdn.net/qq_44642372/article/details/123935071

Luchuanzhao avatar May 04 '22 03:05 Luchuanzhao

image image 我用的melodic,目前编译通过了,手眼标定加载不了rqt的标定插件,就略过了,直接做后面的,但是现在遇到了特别奇怪的问题,gazebo中加载不了banana,准确的说的加载进去但是看不到,因为点云数据可以看出香蕉确实存在,但肉眼看不到。请问有办法解决吗

模型看不到的问题我也遇到过,可以参考这个https://blog.csdn.net/qq_44642372/article/details/123935071

感谢!

NoDoubleBird avatar May 04 '22 07:05 NoDoubleBird

图片 图片

大佬,几何抓取的时候,遇到这种情况怎么解决,点击那个抓取按钮没有任何反应

leilei97 avatar Jul 15 '22 02:07 leilei97

图片 图片

大佬,几何抓取的时候,遇到这种情况怎么解决,点击那个抓取按钮没有任何反应

估计是opencv版本不对

capf-2011 avatar Aug 08 '22 13:08 capf-2011

/home/zoufeng/sim/src/robot_sim-master/experiment/grasp/GPD_method/src/main.cpp:6:10: fatal error: gpd_ros/CloudIndexed.h: 没有那个文件或目录 #include <gpd_ros/CloudIndexed.h> ^~~~~~~~~~~~~~~~~~~~~~~~ 这个错误怎么解决呀? 这个文件里有这个头文件,编译了还是错误

123456ZF avatar Dec 06 '22 12:12 123456ZF

/home/zoufeng/sim/src/robot_sim-master/experiment/grasp/GPD_method/src/main.cpp:6:10: fatal error: gpd_ros/CloudIndexed.h: 没有那个文件或目录 #include <gpd_ros/CloudIndexed.h> ^~~~~~~~~~~~~~~~~~~~~~~~ 这个错误怎么解决呀? 这个文件里有这个头文件,编译了还是错误

请问这个问题解决了吗?我目前也遇到相同的问题。

Leixinjonaschang avatar Feb 18 '23 13:02 Leixinjonaschang

图片 图片

大佬,几何抓取的时候,遇到这种情况怎么解决,点击那个抓取按钮没有任何反应

请问您这个问题解决了吗,我也出现了相同的问题

已解决,更改package/yixiuge_ur10_moveit_config/config文件夹中dh_gripper.yaml文件里的 stopped_velocity_tolerance 这一个参数为0之后下面的两行warn消失,同时abort不再出现

standardcl27 avatar May 09 '23 01:05 standardcl27

ubuntu20.04catkin_make报错: template placeholder type ‘const Box<...auto...>’ must be followed by a simple declarator-id。 找到出问题的文件是gazebo_pkgs文件夹下的gazebo_version_helpers文件夹,目测可能是ubuntu版本不同导致的错误 解决:在https://github.com/JenniferBuehler/gazebo-pkgs下载master分支,然后用gazebo_pkgs文件夹整个替换掉原来的文件夹,不再报错

zhangxi0502 avatar May 03 '24 11:05 zhangxi0502