Reads optoeletric sensors and calculates car height. More...
#include "ros/ros.h"
#include <stdlib.h>
#include <string>
#include <iostream>
#include <cmath>
#include <stdexcept>
#include "duration.h"
#include <boost/math/special_functions/round.hpp>
#include "rostime_decl.h"
#include <sys/time.h>
#include "ros/time.h"
#include <cstdio>
#include <sstream>
#include <cstdarg>
#include <log4cxx/logger.h>
#include "ros/console.h"
#include <boost/static_assert.hpp>
#include <ros/platform.h>
#include <stdint.h>
#include <assert.h>
#include <stddef.h>
#include "ros/assert.h"
#include <vector>
#include <map>
#include <set>
#include <list>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/function.hpp>
#include <ros/macros.h>
#include "exceptions.h"
#include "roscpp_serialization_macros.h"
#include <boost/shared_array.hpp>
#include "ros/forwards.h"
#include "ros/common.h"
#include <string.h>
#include <boost/array.hpp>
#include <ros/types.h>
#include "serialized_message.h"
#include "message_forward.h"
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include "message_traits.h"
#include "ros/exception.h"
#include <boost/call_traits.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/or.hpp>
#include <boost/mpl/not.hpp>
#include <cstring>
#include <boost/bind.hpp>
#include "common.h"
#include <typeinfo>
#include <ros/message_traits.h>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/is_base_of.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/make_shared.hpp>
#include <ros/static_assert.h>
#include "ros/builtin_message_traits.h"
#include "ros/serialization.h"
#include "ros/message_event.h"
#include "forwards.h"
#include "timer_options.h"
#include "ros/rate.h"
#include "wall_timer_options.h"
#include "ros/message.h"
#include "ros/service_traits.h"
#include <boost/lexical_cast.hpp>
#include "subscription_callback_helper.h"
#include "ros/spinner.h"
#include <time.h>
#include "ros/publisher.h"
#include <boost/utility.hpp>
#include "ros/service_server.h"
#include "ros/subscriber.h"
#include "ros/node_handle.h"
#include "ros/init.h"
#include "XmlRpcValue.h"
#include "node_handle.h"
#include "ros/names.h"
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <optoelectric/sensor_sharp_msg.h>
Go to the source code of this file.
Defines | |
#define | d_front_back 2.61 |
#define | PFLN {printf("%s %d\n",__FILE__, __LINE__);} |
Functions | |
int | main (int argc, char **argv) |
int | ReceiveMessage (string &message) |
Variables | |
tcp_client * | lig |
optoelectric::sensor_sharp_msg | msg |
FILE * | pFile |
Reads optoeletric sensors and calculates car height.
The file includes the TCP/IP communication with remote hardware that gives the measured distance of the car bottom to the gound.
Definition in file sensor_GP2D12.cpp.
#define d_front_back 2.61 |
Definition at line 54 of file sensor_GP2D12.cpp.
#define PFLN {printf("%s %d\n",__FILE__, __LINE__);} |
Definition at line 48 of file sensor_GP2D12.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 91 of file sensor_GP2D12.cpp.
int ReceiveMessage | ( | string & | message | ) |
Definition at line 59 of file sensor_GP2D12.cpp.
tcp_client* lig |
Definition at line 56 of file sensor_GP2D12.cpp.
optoelectric::sensor_sharp_msg msg |
Definition at line 57 of file sensor_GP2D12.cpp.
FILE* pFile |
Definition at line 51 of file sensor_GP2D12.cpp.