[Jderobot-admin] jderobot-r1112 - in trunk/src/stable/components/gazeboserver/plugins: kinect pioneer
bmenendez en jderobot.org
bmenendez en jderobot.org
Vie Nov 22 12:31:08 CET 2013
Author: bmenendez
Date: 2013-11-22 12:31:08 +0100 (Fri, 22 Nov 2013)
New Revision: 1112
Modified:
trunk/src/stable/components/gazeboserver/plugins/kinect/kinectPlugin.cc
trunk/src/stable/components/gazeboserver/plugins/pioneer/laser.cc
trunk/src/stable/components/gazeboserver/plugins/pioneer/motors.cc
Log:
#125 Compilation in Ubuntu 13.10 fixed.
Modified: trunk/src/stable/components/gazeboserver/plugins/kinect/kinectPlugin.cc
===================================================================
--- trunk/src/stable/components/gazeboserver/plugins/kinect/kinectPlugin.cc 2013-11-22 10:40:22 UTC (rev 1111)
+++ trunk/src/stable/components/gazeboserver/plugins/kinect/kinectPlugin.cc 2013-11-22 11:31:08 UTC (rev 1112)
@@ -45,7 +45,7 @@
sdf::ElementPtr /*_sdf*/)
{
this->parentSensor =
- boost::shared_dynamic_cast<sensors::DepthCameraSensor>(_sensor);
+ boost::dynamic_pointer_cast<sensors::DepthCameraSensor>(_sensor);
this->depthCamera = this->parentSensor->GetDepthCamera();
if (!this->parentSensor)
Modified: trunk/src/stable/components/gazeboserver/plugins/pioneer/laser.cc
===================================================================
--- trunk/src/stable/components/gazeboserver/plugins/pioneer/laser.cc 2013-11-22 10:40:22 UTC (rev 1111)
+++ trunk/src/stable/components/gazeboserver/plugins/pioneer/laser.cc 2013-11-22 11:31:08 UTC (rev 1112)
@@ -36,7 +36,7 @@
{
// Don't forget to load the camera plugin
RayPlugin::Load(_parent,_sdf);
- this->parentSensor = boost::shared_dynamic_cast<sensors::RaySensor>(_parent);
+ this->parentSensor = boost::dynamic_pointer_cast<sensors::RaySensor>(_parent);
}
Modified: trunk/src/stable/components/gazeboserver/plugins/pioneer/motors.cc
===================================================================
--- trunk/src/stable/components/gazeboserver/plugins/pioneer/motors.cc 2013-11-22 10:40:22 UTC (rev 1111)
+++ trunk/src/stable/components/gazeboserver/plugins/pioneer/motors.cc 2013-11-22 11:31:08 UTC (rev 1112)
@@ -68,7 +68,7 @@
void Motors::Init() {
this->wheelSeparation = this->leftJoint->GetAnchor(0).Distance(this->rightJoint->GetAnchor(0));
std::cout << "Wheel Separation:" << this->wheelSeparation << std::endl;
- physics::EntityPtr parent = boost::shared_dynamic_cast<physics::Entity > (this->leftJoint->GetChild());
+ physics::EntityPtr parent = boost::dynamic_pointer_cast<physics::Entity > (this->leftJoint->GetChild());
math::Box bb = parent->GetBoundingBox();
More information about the Jderobot-admin
mailing list