MOVE vanet simulator problem while saving
I am trying to learn using MOVE simulator and getting this problem:
In the Traffic Model Generator under Static Mobility I import the MOVE trace file and map file. But when I try to save the tcl script(File->Save or SaveAs) I get the following exceptions: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "1.00" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:458) at java.lang.Integer.parseInt(Integer.java:499) at buildNS.write(buildNS.java:1327) at TCLEditor.saveFile(TCLEditor.java:1346) at TCLEditor.SaveMenuActionPerformed(TCLEditor.java:1366) at TCLEditor.access$15(TCLEditor.java:1349) at TCLEditor$16.actionPerformed(TCLEditor.java:1132) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) As a result the trace file that gets generated is empty. :( Can anyone help me ? |
Before making any further investigations :
Which java is installed / configured ? The command : 'java -version' will show. This will set up a genuine sun java .. 1) sudo apt-get install sun-java6-jdk 2) sudo update-alternatives --config java ..... and choose the "sun" java. . |
Thank you very much for coming forward to help.
vidhoon@PC4:~$ java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) The above is the output I get for java -version command. |
java version "1.6.0_20" works OK with the few things
I have tried with "vanetsim". http://www.csie.ncku.edu.tw/~klan/move/index.htm May be tell exactly, what you are doing. I don't understand this : Quote:
Rephrase please. ( I may have difficulties with the bigger windows, my resolution is not the required 1280x... , but 1024x768.) |
In MOVE simulator we have 2 options:
1.traffic model 2.mobility model in mobility model after creating a mobility trace file we have to import it in traffic model generator. while doing so and saving the configuration I get the above errors. please let me know if you need some more info. |
I think this link will give more info about MOVE.. just check out:
http://www.csie.ncku.edu.tw/~klan/move/index.htm Thanks for yur effort and interest man! |
saving problem in move
while creating map i am not able to create output file net.xml.... i am getting the following error please help
java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at java.lang.Runtime.exec(Runtime.java:610) at java.lang.Runtime.exec(Runtime.java:448) at java.lang.Runtime.exec(Runtime.java:345) at netConvert.OKButtonActionPerformed(netConvert.java:175) at netConvert.access$3(netConvert.java:160) at netConvert$1.actionPerformed(netConvert.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.Component.processMouseEvent(Component.java:6108) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:5873) at java.awt.Container.processEvent(Container.java:2105) at java.awt.Component.dispatchEventImpl(Component.java:4469) at java.awt.Container.dispatchEventImpl(Container.java:2163) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) at java.awt.Container.dispatchEventImpl(Container.java:2149) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 31 more java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at java.lang.Runtime.exec(Runtime.java:610) at java.lang.Runtime.exec(Runtime.java:448) at java.lang.Runtime.exec(Runtime.java:345) at netConvert.OKButtonActionPerformed(netConvert.java:175) at netConvert.access$3(netConvert.java:160) at netConvert$1.actionPerformed(netConvert.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.Component.processMouseEvent(Component.java:6108) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:5873) at java.awt.Container.processEvent(Container.java:2105) at java.awt.Component.dispatchEventImpl(Component.java:4469) at java.awt.Container.dispatchEventImpl(Container.java:2163) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) at java.awt.Container.dispatchEventImpl(Container.java:2149) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 31 more java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at java.lang.Runtime.exec(Runtime.java:610) at java.lang.Runtime.exec(Runtime.java:448) at java.lang.Runtime.exec(Runtime.java:345) at netConvert.OKButtonActionPerformed(netConvert.java:175) at netConvert.access$3(netConvert.java:160) at netConvert$1.actionPerformed(netConvert.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.Component.processMouseEvent(Component.java:6108) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:5873) at java.awt.Container.processEvent(Container.java:2105) at java.awt.Component.dispatchEventImpl(Component.java:4469) at java.awt.Container.dispatchEventImpl(Container.java:2163) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055) at java.awt.Container.dispatchEventImpl(Container.java:2149) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4295) at java.awt.EventQueue.dispatchEvent(EventQueue.java:604) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177) at java.awt.EventDispatchThread.run(EventDispatchThread.java:138) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 31 more |
@ deatheater : Welcome to LQ. .. .. :) ..
[knudfl@localhost vanet_MOVE]$ grep sumo-netconvert ./* Binary file ./netConvert.class matches ./netConvert.java: cmd = "sumo-netconvert -v -c " + configurationPath.getText(); ( Looks like a real command , not just calling another java class ? ). May be the program wants to execute "sumo/bin/netconvert" ? Suggest : cd sumo/ ; su ; make install ; cd /usr/local/bin/ ; ln -s netconvert sumo-netconvert .......... And try, if that's the required command. http://sourceforge.net/apps/mediawik...itle=Main_Page Source code : sumo-src-0.12.0.tar.gz, ~ 4.4 MB. Getting the latest source code with svn, warning: it's 3.8 GB ! svn co https://sumo.svn.sourceforge.net/svnroot/sumo sumo ..... More about the command 'sumo-netconvert' here http://sourceforge.net/apps/mediawik...=TraceExporter → → HOWTO "TraceExporter" (( Sumo + TraNS + ns2 : http://trans.epfl.ch/ → ' LINKS ' )) . |
@knudfl
thanku.....where r we suppose to make path change?
|
# 9 : QUOTE : "Where are we supposed to make path change ?"
(( I translated the sentence to the default language : Short hand writing (SMS write) is not allowed at LQ.)) I don't see anything concerning path in your text. Just be sure to have sumo installed : See post # 8. Be aware, that certain functions may not be supported by the latest sumo. All sumo versions are here : http://prdownloads.sourceforge.net/sumo/ You will simply have to try, which one works best with 'MOVE_vanet' ( Or use Google to find a suggestion.) Probably start with a version, same age as MOVE_vanet : 2006, e.g. version 0.8.3 >>> sumo-src-0.8.3.tar.gz .. http://www.linuxquestions.org/linux/rules.html http://www.linuxquestions.org/linux/...Ask_a_Question http://linuxsilo.net/docs/smart-questions_en.html .. |
@knudfl
im using Ubuntu 10.04..... according to sourceforge website for ubuntu 10.04 im suppose to use sumo 0.12.0 version....my sumo is working fine but im not able to access netconverter from MOVE files(ie in map editor when i click on configuration and load files and set output file as <filename>.net.xml and save file as <filename>.netc.cfg and after dat i clicked on create map and load <filename>.netc.cfg and press ok, after that its automatically not creating <filename>.net.xml instead its giving error as posted above )....i hav installed sumo in side MOVE folder.....
|
Well then, time to install sumo to /usr/local/ :
cd sumo-0.12.0/ && sudo make install .. providing /usr/local/bin/netconvert And please remember creating the link : cd /usr/local/bin/ ; sudo ln -s netconvert sumo-netconvert .. |
@knudfl
thank u
il try that.... :) |
MOVE and SUMO
Where should the MOVE package and SUMO package be installed in ubuntu 11.10.
I have copied the MOVE and SUMO package in the home directory. then run configure , make and make install for SUMO... How do we install MOVE package? It is just a jar file..Does it needs installation also? Should this MOVE.jar file be kept in a folder in the home directory? |
# 14
Quote:
|
But Where to install SUMO in ubuntu 11.10? In home folder or /usr/local
How to link MOVE with SUMO ... because when I am trying to create map in MOVE .. it says netconvert not found.... Cannot run program "netconvert": error=2, No such file or directory (ERROR MESSAGE GENERATED). How to remove this error? |
Quote:
Please tell me detail... What does this sudo ln -s netconvert sumo-netconvert command does? Please Explain... Thanks.. |
# 17
Quote:
cd /usr/local/bin/ && sudo ln -s netconvert sumo-netconvert Quote:
"ln -s" creates a symlink / symbolic link. See 'man ln' http://unixhelp.ed.ac.uk/CGI/man-cgi?ln . |
If you are getting an error while creating a Map in MOVE..
the error will be... Cannot run program "netconvert": error=2, No such file or directory . To resolve this error ... Take the following steps. 1. Install SUMO in /usr/local/sumo directory... by running configure, install and make install commands in the terminal. 2. Now go to /usr/local/sumo/bin directory. change the file permission of netconvert command here using chmod just type sudo chmod a+x netconvert. 3. Now its time to create symbolic link of netconvert in the /usr/local/bin directory... we do this to access netconvert of SUMO in the bash shell. Move to /usr/local/bin directory in the terminal. Now type sudo ln -s /usr/local/sumo/bin/netconvert netconvert This will create an symbolic link in /usr/local/bin directory. Check it using ls -l Now you can create Map in the MOVE.. Just Remember that MOVE will be in /home/MOVE/MOVE.jar To run MOVE ... go to its directory.. and type ... java -jar MOVE.jar chao!! |
Sir, we are trying to create dynamic mobility in VANET.. how to do it?
In vehicle movement editor,how the trip should be created? |
All times are GMT -5. The time now is 11:52 PM. |