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

Revision history [back]

click to hide/show revision 1
initial version

Hi,

Your bash path is probably in the wrong folder. Scripts are executed in the console using "./NAMEOFFILE", but the script has to be in the same folder. If you want to run it from a different foler you can especify the path to it, for instance "./data/scenes/installScene.sh". Or change the working folder using "cd NAMEOFFOLDER".

Remember the script needs execution permissions, you can change them executing "sudo chmod u+x NAMEOFFILE". Anyway, this is a regular bash script, you should be able to find tons of information about how to execute it just browsing.

Hope it helps.

Hi,

Your bash path is probably in the wrong folder. Scripts are executed in the console using "./NAMEOFFILE", but the script has to be in the same folder. If you want to run it from a different foler you can especify the path to it, for instance "./data/scenes/installScene.sh". Or change the working folder using "cd NAMEOFFOLDER".

Remember the script needs execution permissions, you can change them executing "sudo chmod u+x NAMEOFFILE". Anyway, this is a regular bash script, you should be able to find tons of information about how to execute it just browsing.

Hope it helps.

Edited:

Sorry, didn't realize you were using package-based installation. In this case problem is script copies the new scene file in the scenes folder. So if you want to add new scenes to the installed through the package, instead of creating a new scenes folder, you can run it with sudo.

In other case, you can create a scenes folder copying UWSimScene.dtd from the other scene folder and installScene script. Then just run it and it should work. Problem is you will need to run uwsim from that folder or specify the path to it in --configfile option.

Sorry again for the misunderstanding!

Hi,

Your bash path is probably in the wrong folder. Scripts are executed in the console using "./NAMEOFFILE", but the script has to be in the same folder. If you want to run it from a different foler you can especify the path to it, for instance "./data/scenes/installScene.sh". Or change the working folder using "cd NAMEOFFOLDER".

Remember the script needs execution permissions, you can change them executing "sudo chmod u+x NAMEOFFILE". Anyway, this is a regular bash script, you should be able to find tons of information about how to execute it just browsing.

Hope it helps.

Edited:

Sorry, didn't realize you were using package-based installation. In this case problem is script copies the new scene file in the scenes folder. So if you want to add new scenes to the installed through the package, instead of creating a new scenes folder, you can run it with sudo.

In other case, you can create a scenes folder copying UWSimScene.dtd from the other scene folder and installScene script. Then just run it and it should work. Problem is you will need to run uwsim from that folder or specify the path to it in --configfile option.

Sorry again for the misunderstanding!

edit 2:

In this case the name of the scene is missing, the error message is far from clear, I should change that. Just execute it with "-s dredging.uws" (or any other available scene).

Hi,

Your bash path is probably in the wrong folder. Scripts are executed in the console using "./NAMEOFFILE", but the script has to be in the same folder. If you want to run it from a different foler you can especify the path to it, for instance "./data/scenes/installScene.sh". Or change the working folder using "cd NAMEOFFOLDER".

Remember the script needs execution permissions, you can change them executing "sudo chmod u+x NAMEOFFILE". Anyway, this is a regular bash script, you should be able to find tons of information about how to execute it just browsing.

Hope it helps.

Edited:

Sorry, didn't realize you were using package-based installation. In this case problem is script copies the new scene file in the scenes folder. So if you want to add new scenes to the installed through the package, instead of creating a new scenes folder, you can run it with sudo.

In other case, you can create a scenes folder copying UWSimScene.dtd from the other scene folder and installScene script. Then just run it and it should work. Problem is you will need to run uwsim from that folder or specify the path to it in --configfile option.

Sorry again for the misunderstanding!

edit 2:

In this case the name of the scene is missing, the error message is far from clear, I should change that. Just execute it with "-s dredging.uws" (or any other available scene).

edit 3:

There is no need to catkin make, as you said there is no source code. Just running "rosrun uwsim uwsim --configfile dredging.xml" after installing the scene should be enough. Check the scene "dredging.xml" downloaded to the right place "/opt/ros/indigo/share/uwsim/data/scenes".