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

Hi all, I just realised that I have several warning when I'm just compiling the tutorial librviz

In file included from /opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreAtomicWrappers.h:33:0,
                 from /opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreResource.h:35,
                 from /opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreMaterial.h:33,
                 from /opt/ros/fuerte/stacks/visualization/rviz/src/rviz/ogre_helpers/grid.h:38,
                 from /home/brieuc/ros_workspace/librviz_tutorial/src/myviz.cpp:46:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::UnimplementedException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<9>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:266:33: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::FileNotFoundException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<6>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:273:32: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::IOException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<0>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:280:22: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::InvalidStateException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<1>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:287:32: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::InvalidParametersException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<2>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:294:37: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::ItemIdentityException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<5>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:301:32: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::ItemIdentityException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<4>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:308:32: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::InternalErrorException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<7>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:315:33: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::RenderingAPIException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<3>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:322:32: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h: In static member function ‘static Ogre::RuntimeAssertionException Ogre::ExceptionFactory::create(Ogre::ExceptionCodeType<8>, const String&, const String&, const char*, long int)’:
/opt/ros/fuerte/stacks/visualization_common/ogre/ogre/include/OGRE/OgreException.h:329:36: warning: parameter ‘code’ set but not used [-Wunused-but-set-parameter]
Linking CXX executable ../bin/myviz

    make[3]: Leaving directory `/home/user/ros_workspace/librviz_tutorial/build'
    [100%] Built target myviz
    make[2]: Leaving directory `/home/user/ros_workspace/librviz_tutorial/build'
    make[1]: Leaving directory `/home/user/ros_workspace/librviz_tutorial/build'

I also tried to add a PointCloud2Display in my grid but whitout success. I suspect all the warning but here the code I wrote to add the point cloud in my grid

// Create a PointCloud display.
  rviz::DisplayWrapper* wrapperPC = manager_->createDisplay( "rviz/PointCloud2", "PointCloud Live", true );
  ROS_ASSERT( wrapperPC != NULL );
  // Unwrap it.
  rviz::Display* displayPC = wrapperPC->getDisplay();
  ROS_ASSERT( displayPC != NULL );
  // Downcast it to the type we think we know it is.
  pointcloud_ = dynamic_cast<rviz::PointCloud2Display*>( displayPC );
  ROS_ASSERT( pointcloud_ != NULL );
  // Configure the GridDisplay the way we like it.
  pointcloud_->setTopic("/voxel_grid/out_put");

where pointcloud_ is a member of Myviz and I can see the pointcloud when I'm running rviz. Anyone has already tried what I'm doing or I'm the first one to intend to use this pluggin?

Thanks