Ask Your Question
0

Launch file error

asked 2020-01-06 06:24:57 -0500

Kora11101 gravatar image

updated 2020-01-06 07:04:36 -0500

Delb gravatar image

After entering a command "projectbot_world.launch, I see problems like:

Invalid <arg> tag: projectbot_gazebo
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/opt/ros/kinetic/share. 

Arg xml is <arg name="world_name" value="$(find projectbot_gazebo)/worlds/projectbot.world"/>
The traceback for the exception was written to the log file

Do you have an idea how to solve it?

Thanks a lot :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-01-06 07:19:00 -0500

Delb gravatar image

The problem here is that you haven't sourced your workspace so the package projectbot_gazebo isn't found. The two ROS path lines that you get from the error are all the data within the variable ROS_PACKAGE_PATH, when using $(find PKG) you will search if a package can be found at the different pathes of the variable. Sourcing your catkin workspace add the path of the packages of your workspace to this variable.

edit flag offensive delete link more

Comments

I'm not sure this is the case. We'd typically see a "ResourceNotFound" error in that case.

The OP here posts a "Invalid <arg> tag".

gvdhoorn gravatar image gvdhoorn  ( 2020-01-06 07:32:07 -0500 )edit
1

I've tried different errors by trying to find something that doesn't exist :

  • Within an arg tag as OP's error and it returned the same error.
  • Within a node tag the output error is the different pathes of ROS_PACKAGE_PATH
  • Within an include tag indeed I got the error ResourceNotFound

I would guess that when using the include tag an error is raised before the error when parsing the xml file.

Delb gravatar image Delb  ( 2020-01-06 08:17:05 -0500 )edit

Interesting. Thanks for checking.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-06 08:44:53 -0500 )edit

So what Exactly should I do? I don't understand the sollution :(

Kora11101 gravatar image Kora11101  ( 2020-01-10 08:54:01 -0500 )edit

You have to source your workspace.

Delb gravatar image Delb  ( 2020-01-10 09:09:46 -0500 )edit

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: 2020-01-06 06:24:57 -0500

Seen: 49 times

Last updated: Jan 06