Fixed no pointcloud on ros
This commit is contained in:
parent
94fd56a65d
commit
c3fc4ba3ba
|
@ -324,7 +324,7 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
|||
is_published_[stream] = true;
|
||||
}
|
||||
|
||||
if (camera_publishers_[Stream::POINTS].getNumSubscribers() > 0 &&
|
||||
if (points_publisher_.getNumSubscribers() > 0 &&
|
||||
!is_published_[Stream::POINTS]) {
|
||||
api_->SetStreamCallback(
|
||||
Stream::POINTS, [this](const api::StreamData &data) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user