Visualizing classified objects/clusters of laserscan in rviz
I have written a program to classify my each laser scan to find nearby objects/cluster(and all required information about those clusters) and in subsequent scans (while I am stationary, and world is moving) I am matching the new clusters with the old ones. I need help in visualizing what clusters I am getting. I am trying using MarkerArray to achieve this.
I have all the geometrical features of starting and ending point of different clusters. Now, how I create pose and position features using these physical features? Will giving slope of two points(in Cartesian coordinates) of one cluster as its pose work ?
if geometry of your clusters is lines,yes you can use points or linelist. just publish them is the frame which you have their values.
I don't have any geometry right now. I just have two extreme points of all the clusters in polar form (lidar as origin) and I can find everything else using this. Can you please tell me how to create a line geometry with given two points. How should I use the published points to get a line?
And, yes, for now I am assuming my cluster to be a straight line connecting the two extreme ends.