Install machine Human Ros drive problems encountered (Catkin_make) _ Robot

Source: Internet
Author: User
Tags chmod

After the above instructions have been executed, Ros will be installed. Of course, there is a need to create your own work space.     Execute the following code: [Python] View plain copy mkdir-p ~/catkin_ws/src CD ~/catkin_ws/src catkin_init_workspace CD. Catkin_make


Roslaunch Aubo_driver Aubo_i5_bringup.launch robot_ip:=192.168.1.34

1. About "Hardware_interface"

CMake Warning at/opt/ros/kinetic/share/catkin/cmake/catkinconfig.cmake:76 (find_package): Could not find a package conf
    Iguration file provided by "Hardware_interface" and any of the following Names:hardware_interfaceConfig.cmake Hardware_interface-config.cmake Add the installation prefix of "hardware_interface" to Cmake_prefix_path or set har  Dware_interface_dir "to a directory containing one of the above files.
If "Hardware_interface" provides a separate development package or SDK, be sure it has been. Call Stack (most recent call I): Aubo_robot/aubo_new_driver/cmakelists.txt:9 (Find_package)--Could not find the Required component ' hardware_interface '. The following CMake error indicates that you either need to install the package with the same name or change your
ent So, it can be found. CMake Error at/opt/ros/kinetic/share/catkin/cmake/catkinconfig.cmake:83 (find_package): Could not find a package config Uration file ProvidEd by "Hardware_interface" and any of the following Names:hardware_interfaceConfig.cmake hardware_interface-c Onfig.cmake Add the installation prefix of "hardware_interface" to Cmake_prefix_path or set "Hardware_interface_dir"  To a directory containing one of the above files.
If "Hardware_interface" provides a separate development package or SDK, be sure it has been. Call Stack (most recent call I): Aubo_robot/aubo_new_driver/cmakelists.txt:9 (Find_package)--Configuring Incompl
ete, Errors occurred!
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeoutput.log".
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeerror.log". Makefile:1858:recipe for Target ' Cmake_check_build_system ' failed make: * * * [Cmake_check_build_system] Error 1 Invoking "
 Make Cmake_check_build_system "failed

Solutions

sudo apt-get install ros-kinetic-effort-controllers
sudo apt-get install

Ros-kinetic-joint-state-controller 2. About Controller_manager

 CMake Error at/opt/ros/kinetic/share/catkin/cmake/catkinconfig.cmake:83 (find_package): Could not find a package C
    Onfiguration file provided by "Controller_manager" and any of the following Names:controller_managerConfig.cmake Controller_manager-config.cmake Add the installation prefix of "Controller_manager" to Cmake_prefix_path or set  Controller_manager_dir "to a directory containing one of the above files.
If "Controller_manager" provides a separate development package or SDK, be sure it has been. Call Stack (most recent call I): Aubo_robot/aubo_new_driver/cmakelists.txt:9 (Find_package)--Configuring Incompl
ete, Errors occurred!
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeoutput.log".
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeerror.log". Makefile:1858:recipe for Target ' Cmake_check_build_system ' failed make: * * * [Cmake_check_build_system] Error 1 Invoking " Make Cmake_check_build_system "Failed 

Solutions
sudo apt-get install Ros-kinetic-ros-control ros-kinetic-ros-controllers

3. Compatibility with Python problem (No module Catkin_dkg.package)
--Using Python nosetests:/usr/bin/nosetests-2.7 importerror: "From catkin_pkg.package import Parse_package" Failed:no m
Odule named Catkin_pkg.package Make sure this you have installed ' catkin_pkg ', it is up to date and on the Pythonpath. CMake Error at/opt/ros/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message): Execute_process (/home/ Wgb/anaconda2/bin/python "/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py" "/opt/ros/kinetic/share/ catkin/cmake/.. /package.xml ""/home/wgb/catkin_ws/build/catkin/catkin_generated/version/package.cmake ") returned error code 1 call S Tack (most recent call I):/opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process )/opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)/opt/ros/kinetic/share/catkin/cmake/
CATKINCONFIG.CMAKE:20 (include) cmakelists.txt:52 (find_package)--Configuring incomplete, Errors occurred! Also "/HOME/WGB/CATKIN_WS/BUILD/CMAKEFILES/CMAKeOutput.log ".
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeerror.log". Invoking "CMake" failed
Solutions
Check the Python version: wgb@wgb:~$ python-v
Check out Catkin-dependent python version: wgb@wgb:~$ dpkg-l python-catkin-pkg
If the version of Python is different from the version that Catkin relies on, there is a problem with the Python dependency package:
Conda Install Setuptools

pip install-u rosdep rosinstall_generator wstool rosinstall six Vcstools

4 No module named EM problem
Importerror:no Module named em gazebo_ros_pkgs/gazebo_msgs/cmakefiles/gazebo_msgs_generate_messages_cpp.dir/ Build.make:117:recipe for Target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/contactstate.h ' failed make[2]: * * * [ /home/wgb/catkin_ws/devel/include/gazebo_msgs/contactstate.h] Error 1 traceback (most recent call last): File "/opt/ros /kinetic/share/gencpp/cmake/.. /.. /.. /lib/gencpp/gen_cpp.py ", line A, in <module> import genmsg.template_tools File"/opt/ros/kinetic/lib/python2. 7/dist-packages/genmsg/template_tools.py ", line A, in <module> import em importerror:no module named EM Gazebo _ros_pkgs/gazebo_msgs/cmakefiles/gazebo_msgs_generate_messages_cpp.dir/build.make:139:recipe for Target '/home/ Wgb/catkin_ws/devel/include/gazebo_msgs/linkstates.h ' failed make[2]: * * * * [/home/wgb/catkin_ws/devel/include/ Gazebo_msgs/linkstates.h] Error 1 traceback (most recent call last): File "/opt/ros/kinetic/share/gencpp/cmake/... /.. /.. /lib/gencpp/gen_cpp.py ", lineIn <module> import genmsg.template_tools File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/templat
  e_tools.py ", line, in <module> import em importerror:no module named EM traceback (most recent called last): File "/opt/ros/kinetic/share/gencpp/cmake/. /.. /.. /lib/gencpp/gen_cpp.py ", line A, in <module> import genmsg.template_tools File"/opt/ros/kinetic/lib/python2. 7/dist-packages/genmsg/template_tools.py ", line A, in <module> import em importerror:no module named EM Gazebo _ros_pkgs/gazebo_msgs/cmakefiles/gazebo_msgs_generate_messages_cpp.dir/build.make:128:recipe for Target '/home/ Wgb/catkin_ws/devel/include/gazebo_msgs/linkstate.h ' failed make[2]: * * * * [/home/wgb/catkin_ws/devel/include/gazebo _msgs/linkstate.h] Error 1 gazebo_ros_pkgs/gazebo_msgs/cmakefiles/gazebo_msgs_generate_messages_cpp.dir/ Build.make:161:recipe for Target '/home/wgb/catkin_ws/devel/include/gazebo_msgs/modelstates.h ' failed make[2]: * * * [/ Home/wgb/catkIn_ws/devel/include/gazebo_msgs/modelstates.h] Error 1 traceback (most recent call last): File "/opt/ros/kinetic/share/ gencpp/cmake/.. /.. /.. /lib/gencpp/gen_cpp.py ", line A, in <module> import genmsg.template_tools File"/opt/ros/kinetic/lib/python2. 7/dist-packages/genmsg/template_tools.py ", line A, in <module> import em importerror:no module named EM Gazebo _ros_pkgs/gazebo_msgs/cmakefiles/gazebo_msgs_generate_messages_cpp.dir/build.make:174:recipe for Target '/home/ Wgb/catkin_ws/devel/include/gazebo_msgs/worldstate.h ' failed make[2]: * * * * [/home/wgb/catkin_ws/devel/include/ Gazebo_msgs/worldstate.h] Error 1 cmakefiles/makefile2:1511:recipe for Target ' gazebo_ros_pkgs/gazebo_msgs/ Cmakefiles/gazebo_msgs_generate_messages_cpp.dir/all ' failed make[1]: * * * * [gazebo_ros_pkgs/gazebo_msgs/cmakefiles/ Gazebo_msgs_generate_messages_cpp.dir/all] Error 2 Makefile:138:recipe for target ' all ' failed make: * * * [ALL] Error 2 in Voking "Make-j12-l12" failed
Solution:
wgb@wgb:~/catkin_ws$ pip Install Empy

5. Defusedxml.xmlrpc
Traceback (most recent): File "/opt/ros/kinetic/lib/xacro/xacro", line <module> import Xacro File "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/__init__.py", line, in <module> roslaunch imp ORT Substitution_args File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/__init__.py", line < Module> from. Launch import Roslaunchrunner File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/launch.p Y ", line, in <module> from roslaunch.nodeprocess import create_master_process, create_node_process File"/O pt/ros/kinetic/lib/python2.7/dist-packages/roslaunch/nodeprocess.py ", line-<module> from ROSMASTER.MASTER_API import num_workers File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/__init__.py", Line/<module> from. Main import rosmaster_main File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosma ster/main.py ", line <module> Import Rosmaster.master File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master.py", line <module>  Import Rosmaster.master_api File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/master_api.py", line, <module> from rosmaster.util import xmlrpcapi File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosmaster/ut il.py ", line +, in <module> from DEFUSEDXML.XMLRPC import monkey_patch importerror:no module named Defusedxml. Xmlrpc while Processing/home/wgb/catkin_ws/src/aubo_robot/aubo_description/launch/aubo_i5_upload.launch:invalid <param> tag:cannot Load Command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro- Inorder '/home/wgb/catkin_ws/src/aubo_robot/aubo_description/urdf/aubo_i5_robot.urdf.xacro '] returned with code [1] 

. Param XML is <param command= "$ (find Xacro)/xacro--inorder ' $ (find aubo_description)/urdf/aubo_i5_robot.urdf.xacro ' "Name=" Robot_description "/>" Traceback for The exception is written to the log file 
Solving method
wgb@wgb:~$ Conda install-c Conda-forge defusedxml

6
wgb@wgb:~$ roslaunch aubo_driver aubo_i5_bringup.launch robot_ip:=192.168.1.34
[Aubo_i5_bringup.launch] is  Neither a launch file in package [Aubo_driver] Nor was [Aubo_driver] a launch file name the Traceback for the
exception is written to the log file

Solving Mehtod
Without any further information or poitners to the source of this package it is hard to tell what was going on. Does the file Tb_tables.launch actually exist? Did you source the Setup.bash file?

What does rospack find tb_tables output?


Solution:
Source/home/wgb/catkin_ws/devel/setup.bash

7.

--Found gtest sources under '/usr/src/gtest ': Gtests'll be built
--Using Python nosetests:/usr/bin/nosetests-2.7< C1/>cmake Error at/opt/ros/kinetic/share/catkin/cmake/assert.cmake:17 (message):
  

  assertion Failed:check for file existence, but filename
  (rt_library-notfound) unset.  Message:rt Library Call

Stack (most recent call i):
  /opt/ros/kinetic/share/catkin/cmake/tools/rt.cmake : Assert_file_exists
  /opt/ros/kinetic/share/catkin/cmake/all.cmake:147 (include)
  /opt/ros/kinetic/ SHARE/CATKIN/CMAKE/CATKINCONFIG.CMAKE:20 (include)
  cmakelists.txt:52 (find_package)-


-configuring Incomplete, Errors occurred!
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeoutput.log".
Also "/home/wgb/catkin_ws/build/cmakefiles/cmakeerror.log".
Invoking "CMake" failed
Solving

Ubuntu folder/usr/lib/x86_64-linux-gnu/shangmian you ge cha, xiang fa chuqu

8./home/wgb/catkin_ws/build/gazebo_ros_pkgs/gazebo_plugins/setup_custom_pythonpath.sh:4: exec:/home/wgb/catkin_ Ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg/camerasynchronizer.cfg:permission denied

/home/wgb/catkin_ws/build/gazebo_ros_pkgs/gazebo_plugins/setup_custom_pythonpath.sh:4: exec:/home/wgb/catkin_ws /src/gazebo_ros_pkgs/gazebo_plugins/cfg/camerasynchronizer.cfg:permission denied gazebo_ros_pkgs/gazebo_plugins/ Cmakefiles/gazebo_plugins_gencfg.dir/build.make:69:recipe for Target '/home/wgb/catkin_ws/devel/include/gazebo_ Plugins/camerasynchronizerconfig.h ' failed make[2]: * * * * [/home/wgb/catkin_ws/devel/include/gazebo_plugins/ CameraSynchronizerConfig.h] Error 126 cmakefiles/makefile2:6310:recipe for Target ' gazebo_ros_pkgs/gazebo_plugins/ Cmakefiles/gazebo_plugins_gencfg.dir/all ' failed make[1]: * * * * [gazebo_ros_pkgs/gazebo_plugins/cmakefiles/gazebo_
Plugins_gencfg.dir/all] Error 2 make[1]: * * * is waiting for unfinished tasks .... [86%] Linking CXX shared library/home/wgb/catkin_ws/devel/lib/libgazebo_ros_joint_trajectory.so [86%] Built target Gazebo_ Ros_joint_trajectory [86%] linking CXX shared Library/home/wgb/catkin_ws/devel/lib/libgazebo_ros_joint_state_ publisher.so [86%] linking CXX sHared library/home/wgb/catkin_ws/devel/lib/libgazebo_ros_api_plugin.so [86%] Built target Gazebo_ros_joint_state_ Publisher [86%] Built target gazebo_ros_api_plugin makefile:138:recipe for Target "All" failed make: * * * [ALL] Error 2 I Nvoking "Make-j4-l4" failed

Solution:

wgb@wgb:~/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/cfg$ Cd/home/wgb/catkin_ws/src/gazebo_ros_pkgs/gazebo_ Plugins/cfg
wgb@wgb:~/catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/cfg$ chmod +x camerasynchronizer.cfg

Or

wgb@wgb:~/catkin_ws/src$ sudo chown-r wgb/home/wgb/catkin_ws/
[sudo] wgb password: 
wgb@wgb:~/catkin_ws/src$ sudo Chmod-r +x/home/wgb/catkin_ws/

Reference:

https://answers.ros.org/question/206860/error-when-calling-catkin_make-invoking-make-failed/

9. "Moveit_ros_planning"

Moveit_ros_planningconfig.cmake
Moveit_ros_planning-config.cmake

Problem

CMake Warning at/opt/ros/indigo/share/catkin/cmake/catkinconfig.cmake:76 (find_package): Could not find a package confi
    Guration file provided by "moveit_ros_planning" and any of the following Names:moveit_ros_planningConfig.cmake Moveit_ros_planning-config.cmake Add the installation prefix of "moveit_ros_planning" to Cmake_prefix_path or set  Moveit_ros_planning_dir "to a directory containing one of the above files.
If "Moveit_ros_planning" provides a separate development package or SDK, be sure it has been. Call Stack (most recent call I): Aubo_robot-indigo-devel/aubo_trajectory_filters/cmakelists.txt:5 (Find_package)- -Could not find the required component ' moveit_ros_planning '. The following CMake error indicates that you either need to install the package with the same name or change your
ent So, it can be found. CMake Error at/opt/ros/indigo/share/catkin/cmake/catkinconfig.cmake:83 (find_package): Could not find a package Configuration file provided by "moveit_ros_planning" and any of the following names:moveit_ros_planningConfig.cm  Ake moveit_ros_planning-config.cmake Add The installation prefix of "moveit_ros_planning" to Cmake_prefix_path or  Set "Moveit_ros_planning_dir" to a directory containing one of the above files.
If "Moveit_ros_planning" provides a separate development package or SDK, be sure it has been. Call Stack (most recent call I): Aubo_robot-indigo-devel/aubo_trajectory_filters/cmakelists.txt:5 (Find_package)-
-Configuring incomplete, Errors occurred!
Also "/home/sensetime/catkin_ws/build/cmakefiles/cmakeoutput.log".
Also "/home/sensetime/catkin_ws/build/cmakefiles/cmakeerror.log".
 Make: * * * * [Cmake_check_build_system] Error 1 invoking "Make Cmake_check_build_system" failed

Solution: Install Moveit, installation method reference http://moveit.ros.org/install/

For Indigo

sudo apt-get install Ros-indigo-moveit
sudo apt-get install ROS-INDIGO-MOVEIT-FULL-PR2
Source/opt/ros/indigo/setup.bash

for Kinetic
sudo apt-get install Ros-kinetic-moveit
Source/opt/ros/kinetic/setup.bash







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.