ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

"Package [] does not have a path" when trying to load file with meshes into gazebo

asked 2018-02-16 07:35:08 -0600

jorgius gravatar image

updated 2018-02-16 07:37:57 -0600

gvdhoorn gravatar image

ROS kinetic, Ubuntu 14.04

I have followed all the steps in the tutorial to create a catkin workspace and a package, and when i run rospack find my_package i get the location to my_package. However, when I launch my project i get the error

[rospack] "Package [] does not have a path".

Also, i can load the same urdf into rviz without a problem.

Here is a snippet from the code:

   <link name="base_link">
      <origin rpy="0 0 0" xyz="0 0 0"/>
      <mass value="187"/>
      <inertia ixx="7.9" ixy="-9" ixz="-0.4" iyy="234" iyz="0.03" izz="233"/>
      <origin rpy="0 0 0" xyz="0 0 0.04"/>
        <mesh filename="package://romovi/src/romovi_dae/corpo_c.dae"/>
      <origin rpy="0 0 0" xyz="0 0 0"/>
        <mesh filename="package://romovi/src/romovi_dae/corpo_v.dae"/>
  <gazebo reference="base_link">
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-16 09:39:16 -0600

jorgius gravatar image

Okay, it seems that the setup bash only works for the terminal where you run it, and i was using two different terminals, one for loading the world and the other to load objects into the world.

edit flag offensive delete link more


Any time you open a new terminal you have to source your workspace and the setup.bash of your ROS distribution. These don't carry over to a new terminal.

jayess gravatar image jayess  ( 2018-02-16 09:54:15 -0600 )edit

Question Tools

1 follower


Asked: 2018-02-16 07:35:08 -0600

Seen: 2,368 times

Last updated: Feb 16 '18