Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckCollisionValid.h:No such file or directory #1

Open
cookiegg opened this issue Nov 14, 2016 · 8 comments
Open

CheckCollisionValid.h:No such file or directory #1

cookiegg opened this issue Nov 14, 2016 · 8 comments

Comments

@cookiegg
Copy link

cookiegg commented Nov 14, 2016

~/catkin_ws/src/AS_6Dof_Arm/as_arm_control/src/check_collision.cpp:11:52: fatal error: as_arm_description/CheckCollisionValid.h: No such file or directory
 #include <as_arm_description/CheckCollisionValid.h>
                                                    ^
compilation terminated.
make[2]: *** [AS_6Dof_Arm/as_arm_control/CMakeFiles/check_collision.dir/src/check_collision.cpp.o] Error 1
make[1]: *** [AS_6Dof_Arm/as_arm_control/CMakeFiles/check_collision.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

作者你好,在工作空间中运行catkin_make的时候出现上述问题,请问该怎么解决?

环境:
ubuntu14.04
ros-indigo
gazebo2.0:使用sudo apt-get install安装的

@yao62995
Copy link
Owner

@cookiegg
CheckCollisionValid.h文件是由as_arm_description/srv/CheckCollisionValid.srv文件自动生成的,在as_arm_description/CMakeList.txt中添加这个srv文件编译就可以得到CheckCollisionValid.h文件了

@cookiegg
Copy link
Author

@yao62995

## Generate services in the 'srv' folder
add_service_files(
   FILES
   #CheckCollisionValid.srv
)

直接去掉.srv前的注释号没用,然后我看了
http://wiki.ros.org/catkin/CMakeLists.txt
感觉没错阿。
后来又把注释号加上去,恢复你原来代码的样子,多跑了一遍catkin_make,竟然通过了。这是为什么?

@cookiegg cookiegg changed the title moveit_simple_grasps CheckCollisionValid.h:No such file or directory Nov 14, 2016
@yao62995
Copy link
Owner

@cookiegg
CMakeLists.txt文件只在as_arm_description包中编译CheckCollisionValid.srv,同时在as_arm_control包中生成CheckCollision可执行程序

@cookiegg
Copy link
Author

我知道问题在哪里了。
在as_arm_control中有一句:

# include_directories(include)
include_directories(
  ${catkin_INCLUDE_DIRS} /home/.../catkin_ws/devel/include/
)

之前没有改成我的地址,所以它找不到在什么地方链接那个头文件。

@iamWHTWD
Copy link

[ERROR] [1515919756.271613351, 0.583000000]: Could not load controller 'joint1_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [INFO] [WallTime: 1515919756.272817] [0.583000] Controller Spawner: Waiting for service controller_manager/unload_controller [INFO] [WallTime: 1515919756.274696] [0.584000] Loading controller: joint_state_controller [ERROR] [1515919756.277628640, 0.585000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [INFO] [WallTime: 1515919756.353850] [0.646000] Controller Spawner: Loaded controllers: joint_state_controller [INFO] [WallTime: 1515919756.356930] [0.646000] Started controllers: joint_state_controller [ERROR] [WallTime: 1515919757.278603] [1.474000] Failed to load joint1_position_controller [INFO] [WallTime: 1515919757.278903] [1.474000] Loading controller: joint2_position_controller [ERROR] [1515919757.281405765, 1.477000000]: Could not load controller 'joint2_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919757.281454009, 1.477000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [WallTime: 1515919758.282727] [2.447000] Failed to load joint2_position_controller [INFO] [WallTime: 1515919758.283153] [2.447000] Loading controller: joint3_position_controller [ERROR] [1515919758.285937638, 2.450000000]: Could not load controller 'joint3_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919758.286063303, 2.451000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types Warning [Publisher.cc:134] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once. [ERROR] [WallTime: 1515919759.286319] [3.396000] Failed to load joint3_position_controller [INFO] [WallTime: 1515919759.286770] [3.397000] Loading controller: joint4_position_controller [ERROR] [1515919759.289423078, 3.399000000]: Could not load controller 'joint4_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919759.289463580, 3.399000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [WallTime: 1515919760.290640] [4.395000] Failed to load joint4_position_controller [INFO] [WallTime: 1515919760.290979] [4.395000] Loading controller: joint5_position_controller [ERROR] [1515919760.293248830, 4.397000000]: Could not load controller 'joint5_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919760.293284884, 4.397000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [WallTime: 1515919761.293638] [5.388000] Failed to load joint5_position_controller [INFO] [WallTime: 1515919761.294034] [5.388000] Loading controller: joint6_position_controller [ERROR] [1515919761.298466382, 5.393000000]: Could not load controller 'joint6_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919761.298527565, 5.393000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [WallTime: 1515919762.299042] [6.382000] Failed to load joint6_position_controller [INFO] [WallTime: 1515919762.299386] [6.382000] Loading controller: joint7_position_controller [ERROR] [1515919762.301778814, 6.385000000]: Could not load controller 'joint7_position_controller' because controller type 'effort_controllers/JointPositionController' does not exist. [ERROR] [1515919762.301899165, 6.385000000]: Use 'rosservice call controller_manager/list_controller_types' to get the available types [ERROR] [WallTime: 1515919763.302343] [7.362000] Failed to load joint7_position_controller

@cookiegg @yao62995
启动gazebo仿真环境:
roslaunch as_arm_gazebo as_arm_bringup.launch 运行该指令出现的问题,想问一下这个是什么原因呢?麻烦了,谢谢

环境:
ubuntu14.04.5
ros-indigo
gazebo2.0:

@Orzqq2
Copy link

Orzqq2 commented Feb 19, 2020

Thanks ORZ

@Alvin-shao
Copy link

作者大佬您好。我也遇到了这个错误,我按照网上在CMakeLists.txt里把那个#去掉了,但是也不行,一直有这个错误,卡了好多天了,您可以帮忙看下吗?可以留个微信吗?或者麻烦您可以加一下我微信吗?13363167547
谢谢大佬!!!!!

@Alvin-shao
Copy link

为什么我改完了还是报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants