Ask Your Question
1

Resource not found

asked 2019-12-10 07:04:29 -0500

zahid990170 gravatar image

updated 2019-12-10 10:03:41 -0500

Hi,

I am working within a simple ROS workspace where I have two packages.

I have included in my workspace (as a new package, "robotic_moveit_config") a configuration generated by MoveIt setup assistant. My question is about this particular package. The configuration generated by MoveIt setup assistant already creates different launch files.

I can build the workspace correctly, and then using roslaunch I can successfully run, for example.

roslaunch robotic_moveit_config demo.launch

and so I can test simple planning scenarios in rviz.

At the same time, I am trying to write some simple motion planning programs.

zahid_test_workspace

src  
--  my_test_pkg
--   ur5_moveit_config 

      -- include
      -- src
      -- launch    
         -- smp.launch

Here, when I try to issue

roslaunch ur5_moveit_config smp.launch

I receive the following error. Resource not found: ur_description

Although before running roslaunch, I do the following

source /opt/ros/melodic/setup.bash
source ~/catkin_ws/devel/setup.bash
source devel/setup.bash

The strange thing is that, other day, I was able to launch my program. Here is the launch file that I am using.

<launch>
<include file="$(find ur5_moveit_config)/launch/demo.launch"/>
<node name="ur5" pkg="ur5_moveit_config" type="ur5" respawn="false" output="screen"/>
</launch>

thanks,

Zahid

edit retag flag offensive close merge delete

Comments

Did you build your workspace before calling source devel/setup.bash? Can you please add the output of echo $ROS_PACKAGE_PATH?

ct2034 gravatar image ct2034  ( 2019-12-10 07:54:45 -0500 )edit

I build the package using, catkin clean followed by catkin build then I issued source devel/setup.bash

The complete error is follows

Resource not found: ur_description
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src
ROS path [2]=/opt/ros/melodic/share
The traceback for the exception was written to the log file

and the output from echo $ROS_PACKAGE_PATH

/home/zahid/ws_moveit/src/ros-moveit-arm/moveit_plugin:/home/zahid/ws_moveit/src/moveit_tutorials:/home/zahid/ws_moveit/src/ros-moveit-arm/my_arm_xacro:/home/zahid/ws_moveit/src/panda_moveit_config:/opt/ros/melodic/share
zahid990170 gravatar image zahid990170  ( 2019-12-10 09:18:29 -0500 )edit

I explicitly added the following path

export ROS_PACKAGE_PATH=/home/zahid/catkin_ws/src/universal_robot:$ROS_PACKAGE_PATH

to the ROS_PACKAGE_PATH. Then, to confirm I issue echo $ROS_PACKAGE_PATH and I receive the following output

/home/zahid/catkin_ws/src/universal_robot:/home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src/my_test_pkg:/home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src/ur5_moveit_config:/opt/ros/melodic/share

The directory ur_description is found under /home/zahid/catkin_ws/src/universal_robot, and therefore I added this path. Following this, I issue source devel/setup.bash and roslaunch robotic_moveit_config smp.launch and still see the following

Resource not found: ur_description
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src/my_test_pkg
ROS path [2]=/home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src/ur5_moveit_config
ROS path [3]=/opt/ros/melodic/
zahid990170 gravatar image zahid990170  ( 2019-12-10 09:48:05 -0500 )edit

i tried the following

  1. adding the following line to the ~/.bashrc file.

    export ROS_PACKAGE_PATH=~/catkin_ws/src/universal_robot:${ROS_PACKAGE_PATH}

  2. copying the directory ur_description under /home/zahid/Desktop/IMPLEMENTATIONS/zahid_test_ws/src/ur5_moveit_config/

But, still the same problem persists.

thanks for your time.

zahid990170 gravatar image zahid990170  ( 2019-12-10 10:51:07 -0500 )edit

It would be wonderful if anyone could answer this question, as I am receiving the same results regardless of the ROS paths I indicated.

brunvj gravatar image brunvj  ( 2020-01-29 09:23:23 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2020-01-31 05:57:13 -0500

ct2034 gravatar image

updated 2020-01-31 06:10:17 -0500

  • The package ur_description is not released for meldoic, yet.
  • Please never manually edit the ROS_PACKAGE_PATH
  • Try to work with ONE workspace only. In it:
    • you have one src folder with multiple subfolders, e.g.:
      • universal_robot (from the repo above) and also
      • my_test_pkg (from the MoveIt setup assistant)
      • There should also be a file CMakeLists.txt, that was generated by catkin_init_workspace
    • Remove devel and build folder,
    • in a clean terminal source only source /opt/ros/melodic/setup.bash
    • build the workspace
  • after this, source ~/catkin_ws/devel/setup.bash is sufficient.
edit flag offensive delete link more

Comments

Im getting the same error;working on ROS melodic. ~/catkin_ws/src/franka_robot/launch$ roslaunch hw2.launch ... logging to /home/anu/.ros/log/80658588-c69f-11ea-8785-080027ad997f/roslaunch-anu-VirtualBox-8095.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

Resource not found: franka_robot ROS path [0]=/opt/ros/melodic/share/ros ROS path [1]=/opt/ros/melodic/share ROS path [2]=/home/anu/catkin_ws/src/franka_robot The traceback for the exception was written to the log file

Ive edited the ~/.bashrc file: :~/catkin_ws/src/franka_robot/launch$ echo $PATH | tr ":" "\n" /opt/ros/melodic/bin /usr/lib/ccache /usr/lib/ccache /usr/lib/ccache /usr/lib/ccache /usr/lib/ccache /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin /catkin_ws/src/franka_robot/launch /catkin_ws/src/franka_robot/launch /home/anu/catkin_ws/src/franka_robot/launch

Thankyou

anu_ros gravatar image anu_ros  ( 2020-07-15 12:47:23 -0500 )edit

Did you follow everything that is in my answer above?

ct2034 gravatar image ct2034  ( 2020-08-04 05:56:02 -0500 )edit

worked thank you so much

akash12124234 gravatar image akash12124234  ( 2021-06-25 04:51:14 -0500 )edit
0

answered 2021-07-07 13:32:37 -0500

jmb2si gravatar image

try to install the moveit-resources-prbt-moveit-config: sudo apt install ros-noetic-moveit-resources-prbt-moveit-config

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-12-10 07:03:01 -0500

Seen: 12,040 times

Last updated: Jan 31 '20