This file is indexed.

/usr/include/openigtlink/igtlSensorMessage.h is in libopenigtlink-dev 1.10.5-1.

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
/*=========================================================================

  Program:   The OpenIGTLink Library
  Language:  C++
  Web page:  http://openigtlink.org/

  Copyright (c) Insight Software Consortium. All rights reserved.

  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef __igtlSensorMessage_h
#define __igtlSensorMessage_h

#include <string>

#include "igtlObject.h"
#include "igtlMath.h"
#include "igtlMessageBase.h"
#include "igtlTypes.h"

#include "igtlUnit.h"

namespace igtl
{

/// SENSOR is a message type, which is used to transfer sensor reading,
/// 3-axis position, velocity, acceleration, angle, angle velocity and angle acceleration.
/// The message format is intended for manipulator control and various types of sensors.
class IGTLCommon_EXPORT SensorMessage: public MessageBase
{
public:
  typedef SensorMessage                  Self;
  typedef MessageBase                    Superclass;
  typedef SmartPointer<Self>             Pointer;
  typedef SmartPointer<const Self>       ConstPointer;

  igtlTypeMacro(igtl::SensorMessage, igtl::MessageBase);
  igtlNewMacro(igtl::SensorMessage);

public:

  /// Sets the length of the array. Returns the resulted length.
  int          SetLength(unsigned int n);

  /// Gets the length of the array.
  unsigned int GetLength();

  /// Sets the unit for the sensor values. Returns 1 if success.
  int          SetUnit(igtlUnit unit);

  /// Sets the unit for the sensor values Returns 1 if success.
  int          SetUnit(igtl::Unit * unit);

  /// Gets the unit as 64-bit unit field defined in igtlUnit.h.
  igtlUnit     GetUnit();

  /// Gets the unit as igtl::Unit class.
  int          GetUnit(igtl::Unit * unit);

  /// Sets sensor values from an array of 64-bit floating data. Returns 1 if success.
  int          SetValue(igtlFloat64 * data);

  /// Sets the value for the i-th sensor. Returns 1 if success.
  int          SetValue(unsigned int i, igtlFloat64 value);

  /// Gets the value of the i-th sensor.
  igtlFloat64  GetValue(unsigned int i);

protected:
  SensorMessage();
  ~SensorMessage();
  
protected:

  virtual int  GetBodyPackSize();
  virtual int  PackBody();
  virtual int  UnpackBody();
  
  /// Length of sensor array.
  igtlUint8    m_Length;

  /// Sensor status (Reserved).
  igtlUint8    m_Status;

  /// Unit (generated by igtl::Unit::Pack()).
  igtlUnit     m_Unit;
  
  /// The array of sensor values.
  std::vector<igtlFloat64> m_Array;
};


} // namespace igtl

#endif // _igtlSensorMessage_h