class_recognition.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
34 #ifndef _CLASS_RECOGNITION_H_
35 #define _CLASS_RECOGNITION_H_
36 
37 #include <stdio.h>
38 #include <ros/ros.h>
39 #include <time.h>
40 #include <iostream>
41 #include <string.h>
42 // #include <atlascar_base/AtlascarStatus.h>
43 // #include <atlascar_base/AtlascarVelocityStatus.h>
44 // #include <atlascar_base/AtlascarPartialStatus.h>
45 #include "ros/file_log.h"
46 #include "rosgraph_msgs/Log.h"
47 #define PFLN printf("Line = %d\n", __LINE__);
48 #include <tf/transform_listener.h>
49 
50 
51 using namespace std;
52 
57 {
58  public:
63  {
66  int ignition;
70  int horn;
71  int throttle;
72  int brake;
73  int clutch;
74  float velocity;
76  float rpm;
77 
78  friend ostream& operator<< (ostream &o, const TYPE_msg_partial &i)
79  {
80  return o
81  <<"||||||||msg_partial||||||"<<endl
82  << "lights_high: "<< i.lights_high<<endl
83  << "lights_medium: "<< i.lights_medium<<endl
84  << "ignition: "<< i.ignition<<endl
85  << "lights_left: "<< i.lights_left<<endl
86  << "lights_right: "<< i.lights_right<<endl
87  << "danger_lights: "<< i.danger_lights<<endl
88  << "horn: "<< i.horn<<endl
89  << "throttle: "<< i.throttle<<endl
90  << "brake: "<< i.brake<<endl
91  << "clutch: "<< i.clutch<<endl
92  << "velocity: "<< i.velocity<<endl
93  << "steering_wheel: "<< i.steering_wheel<<endl
94  << "rpm: "<< i.rpm<<endl;
95  }
96  };
97 
98 
99 
100 
105  {
106  string name_file;
107  double bag_time;
108 
109 
110 
111  friend ostream& operator<< (ostream &o, const TYPE_msg_bags &i)
112  {
113  return o
114  <<"||||||||msg_plc||||||"<<endl
115  << "name_file: "<< i.name_file<<endl
116  << "bag_time: "<< i.bag_time<<endl;
117  }
118 
119  };
120 
121 
122 
127  { };
128 
133  { };
134 
135 
136  private:
137 
138 
139 
140 
141 };
142 
143 #endif
~class_recognition()
Class destructor.
to store the variables of driver monitoring arduino
class_recognition()
Class constructor.
A class to store the structures used on the nodes.
to store the name of the bag file played


driver_recognition
Author(s): Andre Oliveira
autogenerated on Mon Mar 2 2015 01:31:38