Skip to content

Commit

Permalink
comply to the new API
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Jan 27, 2014
1 parent 0746cde commit bae1c90
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/io/MsgAssembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,9 @@ struct MsgAssembler {
object.header.frame_id = frame_id;
object.header.stamp = time;

// Deal with the partial point clouds
if(*publish_clusters_)
{
object.point_clouds.resize(pose_result.clouds().size());
for(size_t i = 0; i < pose_result.clouds().size(); ++i)
{
object.point_clouds[i] = *(pose_result.clouds()[i]);
}
}
// Deal with the partial point clouds
if (*publish_clusters_)
object.point_clouds = pose_result.clouds();

++object_id;
}
Expand Down

0 comments on commit bae1c90

Please sign in to comment.