tuw-robotics / tuw_multi_robot

BSD 3-Clause "New" or "Revised" License
233 stars 113 forks source link

Bug in tuw_segment_to_graph_node #15

Open qzlinqian opened 4 years ago

qzlinqian commented 4 years ago

16

Hi,

I was using the tuw_segment_to_graph_node to generate graph from a segments.yaml file, but no matter how I set the parameters, the multi_robot_router would always print like Start of robot 0 "robot_1" is not valid. I found it was decided by this function, and I noticed that the seg.width() was always 0. I then looked through the segment_to_graph_node, in the readSegments() function, Graph.Vertices[i].valid was not set and published directly to the segments topic. However, in the multi_robot_router, the graphCallback() function would set the segment.width to 0 if not segment.valid.

Is this value decided at other place if I use this tuw_segment_to_graph_node? I couldn't find and as long as I set the valid as true, I could move my robots. So I think there might be a bug ...

Has anyone also met that?

Thanks.