Skip to content

[BUG] Reference Point not respected in core-gui #933

@hhornburg

Description

@hhornburg

Describe the bug
When I set the reference point to - lets say - lat=48, lon=11 at x="1000.0" y="1000.0" and then also place an entity (e.g. a network) to that same place lat=48, lon=11, then the entity appears at x="0" y="0" instead of x="1000.0" y="1000.0".

To Reproduce
Steps to reproduce the behavior:

  1. Load the following config:
<?xml version='1.0' encoding='UTF-8'?>
<scenario>
  <networks>
    <network id="100" name="mesh" icon="" canvas="1" type="WIRELESS_LAN">
      <position lat="48.0" lon="11.0"/>
    </network>
  </networks>
  <session_origin lat="48.0" lon="11.0" alt="534.0" scale="100.0" x="1000.0" y="1000.0" z="0.0"/>
  <session_metadata>
    <configuration name="shapes" value="[]"/>
    <configuration name="edges" value="[]"/>
    <configuration name="hidden" value="[]"/>
    <configuration name="canvas" value="{&quot;gridlines&quot;: true, &quot;canvases&quot;: [{&quot;id&quot;: 1, &quot;wallpaper&quot;: null, &quot;wallpaper_style&quot;: 1, &quot;fit_image&quot;: false, &quot;dimensions&quot;: [2000, 2000]}]}"/>
  </session_metadata>
</scenario>

  1. See that the wlan node is at 0,0
  2. Save configuration to make sure that this is not only a display issue
  3. See that this is indeed the case
<?xml version='1.0' encoding='UTF-8'?>
<scenario>
  <networks>
    <network id="100" name="mesh" icon="" canvas="1" type="WIRELESS_LAN">
      <position x="0.0" y="0.0" lat="48.006010552331865" lon="10.991016847158804" alt="534.0"/>
    </network>
  </networks>
  <devices/>
  <mobility_configurations>
    <mobility_configuration node="100" model="basic_range">
      <configuration name="range" value="275"/>
      <configuration name="bandwidth" value="54000000"/>
      <configuration name="jitter" value="0"/>
      <configuration name="delay" value="5000"/>
      <configuration name="error" value="0.0"/>
      <configuration name="promiscuous" value="0"/>
    </mobility_configuration>
  </mobility_configurations>
  <session_origin lat="48.0" lon="11.0" alt="534.0" scale="100.0" x="1000.0" y="1000.0" z="0.0"/>
  <session_options>
    <configuration name="controlnet" value=""/>
    <configuration name="controlnet0" value=""/>
    <configuration name="controlnet1" value=""/>
    <configuration name="controlnet2" value=""/>
    <configuration name="controlnet3" value=""/>
    <configuration name="controlnet_updown_script" value=""/>
    <configuration name="enablerj45" value="1"/>
    <configuration name="preservedir" value="0"/>
    <configuration name="enablesdt" value="0"/>
    <configuration name="sdturl" value="tcp://127.0.0.1:50000/"/>
    <configuration name="ovs" value="0"/>
    <configuration name="platform_id_start" value="1"/>
    <configuration name="nem_id_start" value="1"/>
    <configuration name="link_enabled" value="1"/>
    <configuration name="loss_threshold" value="30"/>
    <configuration name="link_interval" value="1"/>
    <configuration name="link_timeout" value="4"/>
    <configuration name="mtu" value="0"/>
    <configuration name="checksums" value="0"/>
  </session_options>
  <session_metadata>
    <configuration name="shapes" value="[]"/>
    <configuration name="edges" value="[]"/>
    <configuration name="hidden" value="[]"/>
    <configuration name="canvas" value="{&quot;gridlines&quot;: true, &quot;canvases&quot;: [{&quot;id&quot;: 1, &quot;wallpaper&quot;: null, &quot;wallpaper_style&quot;: 1, &quot;fit_image&quot;: false, &quot;dimensions&quot;: [2000, 2000]}]}"/>
  </session_metadata>
</scenario>

Expected behavior
I expect the an entity placed at the reference point to appear at the reference point

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • CORE Version 9.2.0
  • EMANE Version not applicable

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions