This file is indexed.

/usr/include/choreonoid-1.1/cnoid/src/Body/Sensor.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
   \file
   \author Shin'ichiro Nakaoka
*/

#ifndef CNOID_BODY_SENSOR_H_INCLUDED
#define CNOID_BODY_SENSOR_H_INCLUDED

#include <cnoid/EigenTypes>
#include <string>
#include <vector>
#include <iostream>
#include "exportdecl.h"

namespace cnoid {

    class Link;

    class CNOID_EXPORT Sensor
    {
      public:

        enum SensorType {
            COMMON = 0,
            FORCE,
            RATE_GYRO,
            ACCELERATION,
            PRESSURE,
            PHOTO_INTERRUPTER,
            VISION,
            TORQUE,
            RANGE,
            NUM_SENSOR_TYPES
        };

        static const int TYPE = COMMON;
		
        Sensor(); 
        virtual ~Sensor();

        static Sensor* create(int type);
        static void destroy(Sensor* sensor);

        virtual void operator=(const Sensor& org);

        virtual void clear();
		
        std::string name;
        int type;
        int id;
        Link* link;
        Matrix3 localR;
        Vector3 localPos;

        virtual void putInformation(std::ostream& os);

    };


    class CNOID_EXPORT ForceSensor : public Sensor
    {
      public:
        static const int TYPE = FORCE;
		
        ForceSensor();
        Vector3 f;
        Vector3 tau;

        virtual void clear();
        virtual void putInformation(std::ostream& os);
    };


    class CNOID_EXPORT RateGyroSensor : public Sensor
    {
      public:
        static const int TYPE = RATE_GYRO;

        RateGyroSensor();
        Vector3 w;

        virtual void clear();
        virtual void putInformation(std::ostream& os);
    };


    class CNOID_EXPORT AccelSensor : public Sensor
    {
      public:
        EIGEN_MAKE_ALIGNED_OPERATOR_NEW
        
        static const int TYPE = ACCELERATION;

        AccelSensor();

        Vector3 dv;

        virtual void clear();
        virtual void putInformation(std::ostream& os);

        // The following members are used in the ForwardDynamics class
        Vector2 x[3]; 
        bool isFirstUpdate;
    };

    class CNOID_EXPORT RangeSensor : public Sensor
    {
      public:
        static const int TYPE = RANGE;

        RangeSensor();

        double scanAngle, scanStep, scanRate, maxDistance;  
        std::vector<double> distances;
        double nextUpdateTime;
    };
};


#endif