Visible to the public Question on Polygon SizeConflict Detection Enabled

1 reply [Last post]
jupan
jupan's picture
Offline
Established Community Member
Joined: Jan 14 2017

Hi Dr. Sprinkle,

I subscribed the /detections topic published by 'simplesolution_odomframe.cpp'. I want to classify the objects according to polygon points.

The problem is some /detectons contain more than 16 points, but I 'length(Points(:))' is always 16. That means I lost some points, so that I cannot do an 'accurate' classification by looking at polygon points.

I remeber when I was doing task 2, I tried to publish a polygon with more than 16 points and compiler gave me an error saying I cannot have more than 16 points for one polygon. I am curious about how your simplesolution can publich a polygon with 30 points sometimes.

Thanks,

Ju

Jonathan Sprinkle
sprinkle's picture
Offline
AdministratorEstablished Community Member
Joined: Aug 11 2010
Check out

Check out https://www.mathworks.com/help/robotics/examples/work-with-ros-messages-in-simulink.html which gives an idea of how to adjust the maximum length of an array as part of the simulink block. I think this will work for you, we used this tutorial as part of building up the example of transforming a LaserScan into an image.

Good luck!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.