This file is indexed.

/usr/share/gencpp/srv.h.template is in python-gencpp 0.5.5-2.

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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
@###############################################
@#
@# ROS message source code generation for C++
@#
@# EmPy template for generating <msg>.h files
@#
@###############################################
@# Start of Template
@#
@# Context:
@#  - file_name_in (String) Source .srv file
@#  - spec (msggen.SrvSpec) Parsed specification of the .srv file
@#  - md5sum (String) MD5Sum of the .srv specification
@###############################################
// Generated by gencpp from file @(spec.package)/@(spec.short_name).msg
// DO NOT EDIT!

@{
cpp_namespace = '::'+spec.package+'::' # TODO handle nested namespace
cpp_class = spec.short_name
cpp_full_name = cpp_namespace+cpp_class
}@

#ifndef @(spec.package.upper())_MESSAGE_@(spec.short_name.upper())_H
#define @(spec.package.upper())_MESSAGE_@(spec.short_name.upper())_H

#include <ros/service_traits.h>

@###############################################
@# Generate Request and Response Messages
@###############################################

#include <@(spec.package)/@(spec.short_name)Request.h>
#include <@(spec.package)/@(spec.short_name)Response.h>

@###############################################
@# Service Struct
@###############################################

namespace @(spec.package)
{

struct @(spec.short_name)
{

typedef @(spec.request.short_name) Request;
typedef @(spec.response.short_name) Response;
Request request;
Response response;

typedef Request RequestType;
typedef Response ResponseType;

}; // struct @(spec.short_name)
} // namespace @(spec.package)

@###############################################
@# Service-Traits
@###############################################

namespace ros
{
namespace service_traits
{

@[for trait_class,trait_value in [['MD5Sum', md5sum], ['DataType', spec.full_name]] ]
template<>
struct @trait_class< @cpp_full_name > {
  static const char* value()
  {
    return "@(trait_value)";
  }

  static const char* value(const @(cpp_full_name)&) { return value(); }
};
@[end for]

// service_traits::MD5Sum< @(cpp_full_name)Request> should match 
// service_traits::MD5Sum< @cpp_full_name > 
template<>
struct MD5Sum< @(cpp_full_name)Request>
{
  static const char* value()
  {
    return MD5Sum< @cpp_full_name >::value();
  }
  static const char* value(const @(cpp_full_name)Request&)
  {
    return value();
  }
};

// service_traits::DataType< @(cpp_full_name)Request> should match 
// service_traits::DataType< @cpp_full_name > 
template<>
struct DataType< @(cpp_full_name)Request>
{
  static const char* value()
  {
    return DataType< @cpp_full_name >::value();
  }
  static const char* value(const @(cpp_full_name)Request&)
  {
    return value();
  }
};

// service_traits::MD5Sum< @(cpp_full_name)Response> should match 
// service_traits::MD5Sum< @cpp_full_name > 
template<>
struct MD5Sum< @(cpp_full_name)Response>
{
  static const char* value()
  {
    return MD5Sum< @cpp_full_name >::value();
  }
  static const char* value(const @(cpp_full_name)Response&)
  {
    return value();
  }
};

// service_traits::DataType< @(cpp_full_name)Response> should match 
// service_traits::DataType< @cpp_full_name > 
template<>
struct DataType< @(cpp_full_name)Response>
{
  static const char* value()
  {
    return DataType< @cpp_full_name >::value();
  }
  static const char* value(const @(cpp_full_name)Response&)
  {
    return value();
  }
};

} // namespace service_traits
} // namespace ros

#endif // @(spec.package.upper())_MESSAGE_@(spec.short_name.upper())_H