Ask Your Question
0

Instantiating rosjava messages faster for PointClouds

asked 2013-03-06 20:24:24 -0500

Kircheis gravatar image

updated 2013-03-14 00:32:50 -0500

Hi!

Is there a way to generate/instantiate messages faster in rosjava (newest rev)? From my knowledge i have to use a messageFactory.

Point32 p = messageFactory.newFromType(Point32._TYPE);

The problem is that it's too slow if you have to have generate a lot of Points32 for a PointCloud message. I narrowed it down to this bottleneck.

I tested it with my older rosjava builds (December 2011) and there you instantiate messages directly and i don't have any speed problems.

EDIT1: I have seen that PointCloud2 offers an byte array which should solve the problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-05-07 21:04:06 -0500

damonkohler gravatar image

Using PointCloud2 is the correct solution.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-03-06 20:24:24 -0500

Seen: 196 times

Last updated: May 07 '13