UWsim - unable to execute scene installer script - for package based installation of UW sim
Hi, I am new to Ubuntu Indigo, ROS and UWsim. I am trying to download and install new UWsim scenes.
The UWsim site says download the scene installer script from the link provided, place it in a scenes folder and run it. I placed the script inside gedit and saved it as installscene.sh file in my home folder. Then using sudo cd copied it into the data/scenes folder of UWsim. I tried to execute it by running ./installScene -s dredging.uws from the home and scene folders. However, I get the error: bash: ./installScene: No such file or directory
I must be doing something really stupid. Sorry for such a basic question. Could someone help.
Edit 1 : Thanks for your reply Javier.
I am using the correct path to the file placed in the scenes folder, and also using the sudo chmod
as below, but still getting permission denied:
gary@gary-Inspiron-3542:~$ sudo chmod u+x /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh
[sudo] password for gary:
gary@gary-Inspiron-3542:~$ /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh
bash: /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh: Permission denied
I also checked if I was able to run the file outside the uwsim scenes folder, and it was running:
gary@gary-Inspiron-3542:~$ sudo chmod u+x /home/gary/installscene.sh
[sudo] password for gary:
gary@gary-Inspiron-3542:~$ /home/gary/installscene.sh
Directory where installScene is doesn't seem a UWSim scenes folder (UWSimScene.dtd does not exist).
gary@gary-Inspiron-3542:~$
Is it correct to name the file containing the provided scene installer script as Installscene.sh
, copy the file into the scened folder, and then run the command ./installScene -s dredging.uws
I had looked up the net for any info on the scene installer script, but did not find any detailed explanation.
Edit 2 : Javier, thanks for your reply, but still not clear. I tried both options to run the install scene script for my package-based installation, and both times, I got the error : “line 70: : No such file or directory”
I ran the script placed in the uwsim/data/scenes folder using sudo:
gary@gary-Inspiron-3542:~$ sudo /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh [sudo] password for gary: Installing... /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh: line 70: : No such file or directory
I created a new scenes folder in my home folder, copied the UWSimScene.dtd file & the installscene script into it, and tried to run the script:
gary@gary-Inspiron-3542:~$ /home/gary/scenes/installscene.sh Installing... /home/gary/scenes/installscene.sh: line 70: : No such file or directory
Appreciate your help. Regards.
Edit 3: Thanks Javier. Finally downloaded using the command: sudo /opt/ros/indigo/share/uwsim/data/scenes/installscene.sh -s dredging.uws
Tried to run the new .xml files but the old .xml file still kept opening I think. So presumed I need to run catkin_make install. However, for my package based uwsim installation, I do not have any src folder ...
@Vaz: could you please edit-in updates to your question next time, instead of posting them as an answer? ROS Answers is a little different from a regular forum.
Also: please format console copy/pastes using the Preformatted text button next time (it's the one with
101010
on it).Thanks.
Sorry, learning the ropes. Hope I did it right this time. I edited my question, and used the preformatted text for the console copy. Not sure how you formatted the file name and commands in red.