Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -aur ./rviz-orig/CMakeLists.txt ./rviz/CMakeLists.txt
- --- ./rviz-orig/CMakeLists.txt 2013-12-12 22:13:13.559986000 +0100
- +++ ./rviz/CMakeLists.txt 2013-12-12 22:59:59.970236425 +0100
- @@ -21,6 +21,18 @@
- OUTPUT_VARIABLE OGRE_PLUGIN_PATH
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- +
- +pkg_check_modules(OGRE-Overlay OGRE-Overlay)
- +if (OGRE-Overlay_FOUND)
- +set(OGRE_LDFLAGS ${OGRE_LDFLAGS} ${OGRE-Overlay_LDFLAGS})
- +set(OGRE_INCLUDE_DIRS ${OGRE_INCLUDE_DIRS} ${OGRE-Overlay_INCLUDE_DIRS})
- +set(OGRE_LIBRARIES ${OGRE_LIBRARIES};${OGRE-Overlay_LIBRARIES})
- +set(OGRE_LIBRARY_DIRS ${OGRE_LIBRARY_DIRS} ${OGRE-Overlay_LIBRARY_DIRS})
- +set(OGRE_CFLAGS ${OGRE_CFLAGS} ${OGRE-Overlay_CFLAGS})
- +endif()
- +
- +
- +
- message(STATUS OGRE_PLUGIN_PATH=${OGRE_PLUGIN_PATH})
- if(APPLE)
- diff -aur ./rviz-orig/src/rviz/default_plugin/map_display.cpp ./rviz/src/rviz/default_plugin/map_display.cpp
- --- ./rviz-orig/src/rviz/default_plugin/map_display.cpp 2013-12-12 22:13:13.596653000 +0100
- +++ ./rviz/src/rviz/default_plugin/map_display.cpp 2013-12-13 00:41:04.798826913 +0100
- @@ -60,7 +60,7 @@
- MapDisplay::MapDisplay()
- : Display()
- , manual_object_( NULL )
- - , material_( 0 )
- + //~ , material_( NULL )
- , loaded_( false )
- , resolution_( 0.0f )
- , width_( 0 )
- diff -aur ./rviz-orig/src/rviz/ogre_helpers/movable_text.cpp ./rviz/src/rviz/ogre_helpers/movable_text.cpp
- --- ./rviz-orig/src/rviz/ogre_helpers/movable_text.cpp 2013-12-12 22:13:13.613319000 +0100
- +++ ./rviz/src/rviz/ogre_helpers/movable_text.cpp 2013-12-12 22:17:48.955047760 +0100
- @@ -47,7 +47,7 @@
- #include "OGRE/OgreSceneNode.h"
- #include "OGRE/OgreMaterialManager.h"
- #include "OGRE/OgreHardwareBufferManager.h"
- -#include "OGRE/OgreFontManager.h"
- +#include "OGRE/Overlay/OgreFontManager.h"
- #include <sstream>
- diff -aur ./rviz-orig/src/rviz/ogre_helpers/movable_text.h ./rviz/src/rviz/ogre_helpers/movable_text.h
- --- ./rviz-orig/src/rviz/ogre_helpers/movable_text.h 2013-12-12 22:13:13.613319000 +0100
- +++ ./rviz/src/rviz/ogre_helpers/movable_text.h 2013-12-12 22:19:51.727664899 +0100
- @@ -50,6 +50,7 @@
- {
- class RenderQueue;
- class Camera;
- +class Font;
- }
- namespace rviz
- diff -aur ./rviz-orig/src/rviz/ogre_helpers/point_cloud.cpp ./rviz/src/rviz/ogre_helpers/point_cloud.cpp
- --- ./rviz-orig/src/rviz/ogre_helpers/point_cloud.cpp 2013-12-12 22:13:13.613319000 +0100
- +++ ./rviz/src/rviz/ogre_helpers/point_cloud.cpp 2013-12-13 00:03:32.377725195 +0100
- @@ -137,19 +137,20 @@
- std::stringstream ss;
- static int count = 0;
- ss << "PointCloudMaterial" << count++;
- - point_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudPoint");
- - square_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudSquare");
- - flat_square_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudFlatSquare");
- - sphere_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudSphere");
- - tile_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudTile");
- - box_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudBox");
- -
- - point_material_ = Ogre::MaterialPtr(point_material_)->clone(ss.str() + "Point");
- - square_material_ = Ogre::MaterialPtr(square_material_)->clone(ss.str() + "Square");
- - flat_square_material_ = Ogre::MaterialPtr(flat_square_material_)->clone(ss.str() + "FlatSquare");
- - sphere_material_ = Ogre::MaterialPtr(sphere_material_)->clone(ss.str() + "Sphere");
- - tile_material_ = Ogre::MaterialPtr(tile_material_)->clone(ss.str() + "Tiles");
- - box_material_ = Ogre::MaterialPtr(box_material_)->clone(ss.str() + "Box");
- +
- + point_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudPoint").staticCast<Ogre::Material>();
- + square_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudSquare").staticCast<Ogre::Material>();
- + flat_square_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudFlatSquare").staticCast<Ogre::Material>();
- + sphere_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudSphere").staticCast<Ogre::Material>();
- + tile_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudTile").staticCast<Ogre::Material>();
- + box_material_ = Ogre::MaterialManager::getSingleton().getByName("rviz/PointCloudBox").staticCast<Ogre::Material>();
- +
- + point_material_ = point_material_->clone(ss.str() + "Point");
- + square_material_ = square_material_->clone(ss.str() + "Square");
- + flat_square_material_ = flat_square_material_->clone(ss.str() + "FlatSquare");
- + sphere_material_ = sphere_material_->clone(ss.str() + "Sphere");
- + tile_material_ = tile_material_->clone(ss.str() + "Tiles");
- + box_material_ = box_material_->clone(ss.str() + "Box");
- point_material_->load();
- square_material_->load();
- @@ -174,12 +175,12 @@
- tile_material_->unload();
- box_material_->unload();
- - Ogre::MaterialManager::getSingleton().remove(point_material_);
- + /*Ogre::MaterialManager::getSingleton().remove(point_material_);
- Ogre::MaterialManager::getSingleton().remove(square_material_);
- Ogre::MaterialManager::getSingleton().remove(flat_square_material_);
- Ogre::MaterialManager::getSingleton().remove(sphere_material_);
- Ogre::MaterialManager::getSingleton().remove(tile_material_);
- - Ogre::MaterialManager::getSingleton().remove(box_material_);
- + Ogre::MaterialManager::getSingleton().remove(box_material_);*/
- }
- const Ogre::AxisAlignedBox& PointCloud::getBoundingBox() const
- diff -aur ./rviz-orig/src/rviz/ogre_helpers/point_cloud.h ./rviz/src/rviz/ogre_helpers/point_cloud.h
- --- ./rviz-orig/src/rviz/ogre_helpers/point_cloud.h 2013-12-12 22:13:13.613319000 +0100
- +++ ./rviz/src/rviz/ogre_helpers/point_cloud.h 2013-12-12 22:21:13.920518605 +0100
- @@ -213,12 +213,12 @@
- Ogre::Vector3 common_direction_; ///< See Ogre::BillboardSet::setCommonDirection
- Ogre::Vector3 common_up_vector_; ///< See Ogre::BillboardSet::setCommonUpVector
- - Ogre::ResourcePtr point_material_;
- - Ogre::ResourcePtr square_material_;
- - Ogre::ResourcePtr flat_square_material_;
- - Ogre::ResourcePtr sphere_material_;
- - Ogre::ResourcePtr tile_material_;
- - Ogre::ResourcePtr box_material_;
- + Ogre::MaterialPtr point_material_;
- + Ogre::MaterialPtr square_material_;
- + Ogre::MaterialPtr flat_square_material_;
- + Ogre::MaterialPtr sphere_material_;
- + Ogre::MaterialPtr tile_material_;
- + Ogre::MaterialPtr box_material_;
- Ogre::MaterialPtr current_material_;
- float alpha_;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement