Background image in Network Scenario

828 views
Skip to first unread message

rport...@gmail.com

unread,
Apr 26, 2013, 5:41:41 AM4/26/13
to omn...@googlegroups.com
Hi,

I'm working on a VANET simulation by using both SUMO and Omnet++ with the interface of inetmanet 2.0.
I'm getting an error when I inserted the below code in the Network Scenario in order to display the image of the map that I am using for SUMO (which is the exact same map with the same coordinates, the only difference is that the image of the map in Omnet++ is a png).

The code I'm using is:

network Network
{
    @display("bgi=background/IVC_RVC,s");



Also I have inserted the image IVC_RVC.png into the same folder that the network scenario is in and instead of the image as a background I'm getting question marks.
Is it probably because the image extension is .png?
Or is because the location of the image is wrong?
Any ideas on how to solve this please?

Thanks in advance,
Rebecca

Rudolf Hornig

unread,
Apr 26, 2013, 9:08:52 AM4/26/13
to omn...@googlegroups.com


On Friday, 26 April 2013 11:41:41 UTC+2, rport...@gmail.com wrote:
Hi,

I'm working on a VANET simulation by using both SUMO and Omnet++ with the interface of inetmanet 2.0.
I'm getting an error when I inserted the below code in the Network Scenario in order to display the image of the map that I am using for SUMO (which is the exact same map with the same coordinates, the only difference is that the image of the map in Omnet++ is a png).

The code I'm using is:

network Network
{
    @display("bgi=background/IVC_RVC,s");



Also I have inserted the image IVC_RVC.png into the same folder that the network scenario is in and instead of the image as a background I'm getting question marks.
Is it probably because the image extension is .png?
No. Png is fine.
 
Or is because the location of the image is wrong?
You should put the image into 'omnetpproot/images/background'.

Rebecca Portelli

unread,
Apr 28, 2013, 3:17:38 AM4/28/13
to omn...@googlegroups.com
Thanks a lot for the help!

It worked well!
I would like to ask how to get the dimensions of the map that I'm using. I want be able to set the constraintAreaMaxX and Y of the omnetpp.ini, please.

Is there any calculation that I can do? Or do I just invent them?

Thanks for your time!


--
--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp
 
---
You received this message because you are subscribed to a topic in the Google Groups "omnetpp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/omnetpp/6jHQ84qAJVM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to omnetpp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages