ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm trying to do something similar but with a point cloud2 tipe of message the problem is that i don't get any errors but it doesn't display anything. my code is this

manager_ = new rviz::VisualizationManager( render_panel_ ); render_panel_->initialize( manager_->getSceneManager(), manager_ ); manager_->initialize(); manager_->startUpdate();

grid1_ = manager_->createDisplay( "rviz/PointCloud2", "/octomap_point_cloud_centers", true );

ROS_ASSERT( grid1_ != NULL );

grid1_->subProp("Topic")->setValue("/my_cloud"); grid1_->subProp( "Color" )->setValue( Qt::yellow ); grid1_->setFixedFrame("/world"); grid1_->subProp("Style")->setValue("Flat Squares"); grid1_->setProperty("Size",0.1); grid1_->setProperty("Decay Time",10); Could you help me