Revision: 7664
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7664&view=rev
Author:   hsujohnhsu
Date:     2009-05-14 18:44:51 +0000 (Thu, 14 May 2009)

Log Message:
-----------
return list of sensors for the Body.

Modified Paths:
--------------
    code/gazebo/trunk/server/physics/Body.cc
    code/gazebo/trunk/server/physics/Body.hh

Modified: code/gazebo/trunk/server/physics/Body.cc
===================================================================
--- code/gazebo/trunk/server/physics/Body.cc    2009-05-14 16:41:37 UTC (rev 
7663)
+++ code/gazebo/trunk/server/physics/Body.cc    2009-05-14 18:44:51 UTC (rev 
7664)
@@ -1253,3 +1253,10 @@
   else
     return NULL;
 }
+
+////////////////////////////////////////////////////////////////////////////////
+// Get all children
+std::vector< Sensor* > &Body::GetSensors() 
+{
+  return this->sensors;
+}

Modified: code/gazebo/trunk/server/physics/Body.hh
===================================================================
--- code/gazebo/trunk/server/physics/Body.hh    2009-05-14 16:41:37 UTC (rev 
7663)
+++ code/gazebo/trunk/server/physics/Body.hh    2009-05-14 18:44:51 UTC (rev 
7664)
@@ -206,6 +206,9 @@
     /// \brief Set transparency for all child geometries
     public: void SetTransparency(float t);
 
+    /// Returns list of sensors
+    public:  std::vector< Sensor* > &GetSensors();
+
     /// List of geometries attached to this body
     private: std::map< std::string, Geom* > geoms;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to