Ask Your Question
0

Same launch file error even after changing ROS_PACKAGE_PATH

asked 2014-01-05 08:55:30 -0600

Athoesen gravatar image

updated 2014-01-28 17:18:57 -0600

ngrennan gravatar image

I just want to be able to use my custom launch files and am not having much success getting them to work.

Since I'm still new I didn't want to mess with the .bashrc file yet.

Edit: I added this to the .bashrc and it still didn't work

export ROS_PACKAGE_PATH=/home/mycomputer/Desktop/workspace:$ROS_PACKAGE_PATH

I'll provide the steps I did and maybe someone can tell me where I went wrong. I've looked through all of the tutorials on the ROS wiki, googled, and looked on here and am still coming up short.

I created a copy of openni_launch and renamed test_openni_launch on my desktop. I also created a barebones example_launch with example.launch inside a launch folder and a package.xml. I went to a new terminal and typed:

export | grep ROS

I then changed my ROS_PACKAGE_PATH from

ROS_PACKAGE_PATH="/opt/ros/hydro/share"

to

ROS_PACKAGE_PATH="/home/my_computer/Desktop:/opt/ros/hydro/share"

Yet I still receive the same message:

[test_openni.launch] is neither a launch file in package [test_openni_launch] nor is [test_openni_launch] a launch file name

I've been looking at the structure of launch files and I don't think it's my problem, I think that the path is my problem. I've been unable to resolve this, so I'm hoping someone can help. If I completely change the ROS_PACKAGE_PATH like so:

declare -x ROS_PACKAGE_PATH="/home/my_computer/Desktop"

It returns this for roslaunch openni_launch openni.launch:

Invalid tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1].

Param xml is param command="rosversion roslaunch" name="rosversion"/

And does the same "invalid package" for my example.launch as previously shown.

Any ideas?

Edit2: I checked the answer here and it looks like my method of adding a folder from the desktop should be valid. What gives?

edit retag flag offensive close merge delete

Comments

did you solve your problem?

hamid gravatar imagehamid ( 2014-01-07 07:52:03 -0600 )edit

Yes, thank you!

Athoesen gravatar imageAthoesen ( 2014-01-07 09:01:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-01-07 09:02:14 -0600

Athoesen gravatar image

updated 2014-01-07 09:03:18 -0600

Answer to what my issue was: http://answers.ros.org/question/115101/how-do-i-write-my-own-launch-files-in-hydro/

I'm guessing the test package provides all of the needed structure for ROS to recognize the launch file.

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: 2014-01-05 08:55:30 -0600

Seen: 496 times

Last updated: Jan 07 '14