How to connect two nodes in NodeLink-Line mode?

(he4330937) #1

A problem block me in mapnav2 plugin. please help me. Thanks ,
In sample 06_nodelink_tool, I find some nodes connect, so i want to create some node for connect,
but how to do ? In NodeLink-Line mode, I click a node , a blue circle show in map, I click other node, show a circle again.
How to use NodeLink-line mode to connect two nodes?

(Leslie Young) #2

Sorry. Seems to be feature I added later and never updated documents with.

First mark a node with Left Click - it becomes Blue.
Then hold Shift and Left Click another node - it becomes Red.

Now enter a number into “Link Data” and press Apply to create the link between the two nodes with specified number (data).

So you can first mark a length of nodes with Blue and then hold Shift and mark another length with red… and then do Apply to quickly link them all up.

The number you entered help identify what kind of Link is it. You will see in example 6 I marked the door area with #1 (and it shows up as a blue link) while the nodes around the walls are marked as #2 links and shows up as Green.

In Sample6Controller.OnNodeCostCallback() I check for this number (data) to decide whether movement is allowed or not.

(he4330937) #3

Thank you very much , I see your video in youbute too.