2018年12月9日日曜日

rosdep in Linux mint tara(ubuntu18.04)

linux mintでrosdepをするときの注意 rosdep install foo を実行したときに起きる こんな感じの全力でやる気を削ぎに来るエラーはROSがOSを陰にubuntuだと決めつけているから 起こる問題ですので,rosdepに適切な引数をあたえるとよろし. 実際にコマンドはページ最下部にあるでよ.


 ERROR: Rosdep cannot find all required resources to answer your query Missing resource moveit_sample ROS path [0]=/opt/ros/melodic/share/ros ROS path [1]=/opt/ros/melodic/share ROS path [2]=/home/harumo/catkin_ws/src/industrial_core/industrial_core ROS path [3]=/home/harumo/catkin_ws/src/industrial_core/industrial_deprecated ROS path [4]=/home/harumo/catkin_ws/src/industrial_core/industrial_msgs ROS path [5]=/home/harumo/catkin_ws/src/industrial_core/industrial_trajectory_filters ROS path [6]=/home/harumo/catkin_ws/src/industrial_core/industrial_utils ROS path [7]=/home/harumo/catkin_ws/src/motoman/motoman ROS path [8]=/home/harumo/catkin_ws/src/motoman/motoman_gp12_support ROS path [9]=/home/harumo/catkin_ws/src/motoman/motoman_gp7_support ROS path [10]=/home/harumo/catkin_ws/src/motoman/motoman_gp8_support ROS path [11]=/home/harumo/catkin_ws/src/motoman/motoman_mh12_support ROS path [12]=/home/harumo/catkin_ws/src/motoman/motoman_mh50_support ROS path [13]=/home/harumo/catkin_ws/src/motoman/motoman_mh5_support ROS path [14]=/home/harumo/catkin_ws/src/motoman/motoman_motomini_support ROS path [15]=/home/harumo/catkin_ws/src/motoman/motoman_msgs ROS path [16]=/home/harumo/catkin_ws/src/motoman/motoman_sda10f_moveit_config ROS path [17]=/home/harumo/catkin_ws/src/motoman/motoman_sda10f_support ROS path [18]=/home/harumo/catkin_ws/src/motoman/motoman_sia10d_support ROS path [19]=/home/harumo/catkin_ws/src/motoman/motoman_sia10f_support ROS path [20]=/home/harumo/catkin_ws/src/motoman/motoman_sia20d_moveit_config ROS path [21]=/home/harumo/catkin_ws/src/motoman/motoman_sia20d_support ROS path [22]=/home/harumo/catkin_ws/src/motoman/motoman_sia5d_support ROS path [23]=/home/harumo/catkin_ws/src/moveit_sample ROS path [24]=/home/harumo/catkin_ws/src/ros_start ROS path [25]=/home/harumo/catkin_ws/src/sia20 ROS path [26]=/home/harumo/catkin_ws/src/industrial_core/simple_message ROS path [27]=/home/harumo/catkin_ws/src/industrial_core/industrial_robot_client ROS path [28]=/home/harumo/catkin_ws/src/industrial_core/industrial_robot_simulator ROS path [29]=/home/harumo/catkin_ws/src/motoman/motoman_driver ROS path [30]=/home/harumo/catkin_ws/src/urdf_start

とか,あるいは下記のようなもの

 ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: motoman_driver: Cannot locate rosdep definition for [roslint] motoman_gp7_support: Cannot locate rosdep definition for [roslaunch] motoman_sia10f_support: Cannot locate rosdep definition for [roslaunch] industrial_core: Cannot locate rosdep definition for [industrial_trajectory_filters] urdf_start: No definition of [gazebo] for OS version [] motoman_sia10d_support: Cannot locate rosdep definition for [roslaunch] motoman_mh50_support: Cannot locate rosdep definition for [roslaunch] motoman_sda10f_moveit_config: Cannot locate rosdep definition for [xacro] industrial_trajectory_filters: Cannot locate rosdep definition for [orocos_kdl] ros_start: Cannot locate rosdep definition for [std_msgs] motoman_mh12_support: Cannot locate rosdep definition for [roslaunch] my_moveit: Cannot locate rosdep definition for [trajectory_msgs] industrial_utils: Cannot locate rosdep definition for [rosunit] motoman_motomini_support: Cannot locate rosdep definition for [roslaunch] industrial_robot_simulator: Cannot locate rosdep definition for [roslaunch] industrial_msgs: Cannot locate rosdep definition for [message_runtime] motoman_mh5_support: Cannot locate rosdep definition for [roslaunch] motoman_sda10f_support: Cannot locate rosdep definition for [roslaunch] industrial_robot_client: Cannot locate rosdep definition for [rosunit] motoman_msgs: Cannot locate rosdep definition for [trajectory_msgs] sia20: No definition of [gazebo] for OS version [] motoman_sia20d_support: Cannot locate rosdep definition for [roslaunch] industrial_deprecated: Cannot locate rosdep definition for [catkin] motoman: Cannot locate rosdep definition for [motoman_sia5d_support] motoman_gp12_support: Cannot locate rosdep definition for [roslaunch] motoman_sia20d_moveit_config: Cannot locate rosdep definition for [xacro] motoman_sia5d_support: Cannot locate rosdep definition for [roslaunch] simple_message: Cannot locate rosdep definition for [rosunit] motoman_gp8_support: Cannot locate rosdep definition for [roslaunch]


そういうときは,このコマンド.
(catkin_wsに移動してから下記のコマンドを打ってくださいね)

 rosdep install --from-paths src --ignore-src --rosdistro melodic -y --os=ubuntu:bionic