RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

tools/zep_dispatch: topogen: allow to pass worldfile

Open benpicco opened this issue 2 months ago • 3 comments

Contribution description

Make it a bit more straightforward to set up a simulated network by just passing the x,y positions of the nodes via a world map file.

A world map file might look like

A	5	3	10
B	10
C	20	20

Testing procedure

Run topogen -f word.2d

# Connections
A
B
C
A	B	0.66	0.95
B	C	0.20	0.20
A	C	0.00	0.18


# Node	X	Y	range	color
# A	5	3	10	0x13174ed1
# B	10	0	25	0x13174ed1
# C	20	20	25	0x13174ed1

Issues/PRs references

benpicco avatar Oct 10 '25 09:10 benpicco

Murdock results

:heavy_check_mark: PASSED

4a2e81d2196072c2611f254ff74d236e386ceea3 tools/zep_dispatch: topogen: allow to pass worldfile

Success Failures Total Runtime
1 0 1 01m:22s

Artifacts

riot-ci avatar Oct 10 '25 09:10 riot-ci

Nice addition! Is worldfile somehow an established or well-known standard or your own invention? In any case, we'd need documentation about its format in the accompanying README.

mguetschow avatar Oct 10 '25 10:10 mguetschow

It's just a very simple, ad-hoc format. I added the description to README.md.

benpicco avatar Nov 10 '25 15:11 benpicco