[Question] Best option for moving nodes in real time
See original GitHub issueThis question is extremely similar to #376
I would like to move nodes around within a session with new location info that is not known ahead of time. Looking over the mobility section (link) it seems like ns-2 scripting and EMANE events are not viable options since they rely on locations being compiled before runtime.
Expanding on #376:
- Using the setposition() method of CoreNode, can I just move the nodes around within a while loop whenever new location info comes in? e.g.
# Setup session
node = session.add_node(CoreNode)
…
while True:
if new_location_info:
node.setposition(x=new_x, y=new_y)
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Moving structure elements from one node level to another? is ...
Hi All, In SOLAR01, we currently have a structure that is 4-level deep (from Project -- > Scenario --> B. Process --> Process...
Read more >6 Best Network Topologies Explained - Pros & Cons [Including ...
Discover the 6 main types of Network Topology, learn the Pros & Cons of each. We also look at which topology is best...
Read more >Best First Search Algorithm in AI | Concept, Implementation ...
The best First Search algorithm in artificial intelligence is used for for finding the shortest path from a given starting node to a...
Read more >Find first node of loop in a linked list - GeeksforGeeks
2. Move both slow and fast pointers one node at a time. 3. The point at which they meet is the start of...
Read more >Top Linked List Interview Questions (2022) - InterviewBit
Now, one element at a time, move each pointer. ... Why is merge sort a better option than quicksort for linked lists?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
They are updated on develop branch now and yes gRPC would likely be the best. The assumed behavior for relative links working, only works within the repo and when the documentation pages are generated it broke the links =(.
On develop I am making the links hard coded to master, for better or worse =(.
If you look at the doc file directly, they will work: https://github.com/coreemu/core/blob/master/docs/grpc.md
The specific method you likely care about is: https://github.com/coreemu/core/blob/e0842197e389f3f14c73dc5db6cc26f78e665f62/daemon/core/api/grpc/client.py#L496-L504
Which is using the grpc call: https://github.com/coreemu/core/blob/e0842197e389f3f14c73dc5db6cc26f78e665f62/daemon/proto/core/api/grpc/core.proto#L56-L57
Apologies for the delay.
I just did a clean install of an Ubuntu 20.04 VM and CORE 7.0.1. After changing the InterfaceHelper.create_interface() method to .create_iface() to accommodate for 7.0.1, the above script worked as expected. Thanks for your help!