~robot3d-team/robot3d/trunk

« back to all changes in this revision

Viewing changes to inc/srCore/sensor/laserScanner.h

  • Committer: Anne van Rossum
  • Date: 2010-08-10 15:58:55 UTC
  • Revision ID: anne@gamix-20100810155855-kve7x2vwouagdij9
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//! Laser Scanner class.
 
2
 
 
3
/*!
 
4
 *
 
5
 * Describes general laser scanner properties.
 
6
 *
 
7
 * @author Lutz Winkler
 
8
 *
 
9
 */
 
10
 
 
11
#ifndef LASERSCANNER_H_
 
12
#define LASERSCANNER_H_
 
13
 
 
14
#include "raySensorBase.h"
 
15
 
 
16
namespace srCore {
 
17
 
 
18
class LaserScanner : public RaySensorBase
 
19
{
 
20
public:
 
21
 
 
22
        /**
 
23
         * \brief  Initializes the sensor
 
24
         *
 
25
         * \param                       gm                                                      GameManager, which handles the corresponding robot
 
26
         * \param                       attachedTo                                      Body, where the scanner is attached to
 
27
         * \param               pos                                                     Local position of the scanner
 
28
         * \param                       orient                                          Local orientation of the scanner
 
29
         * \param                       flareAngle                                      flare angle of the scanner
 
30
         * \param                       resolution                                      resolution of the scanner
 
31
         * \param                       name                                            name of the scanner
 
32
         *
 
33
         *
 
34
         */
 
35
        LaserScanner(dtCore::RefPtr<BodyBase> attachedTo, osg::Vec3f pos, osg::Vec3f orient, float flareAngle, osg::Vec2 resolution, const std::string &name);
 
36
        virtual ~LaserScanner();
 
37
 
 
38
        //! sends command to retrieve data
 
39
        void evaluate(ParameterReturnValue srv);
 
40
 
 
41
        void getSensorValue(std::ostream& theStream) const {theStream << currentSensorValue;};
 
42
 
 
43
//      void update() {RaySensorBase::update();};
 
44
 
 
45
private:
 
46
        osg::ref_ptr<osg::Image> value;
 
47
 
 
48
};
 
49
 
 
50
}
 
51
 
 
52
#endif /*LASERSCANNER_H_*/