nj_dummy.h
Go to the documentation of this file.
00001 #ifndef _NLJ_DUMMY_NJ_DUMMY_H_
00002 #define _NLJ_DUMMY_NJ_DUMMY_H_
00003 
00004 #include <cstdlib>
00005 #include <ctime>
00006 
00007 #include <lama_jockeys/navigating_jockey.h>
00008 
00009 #include <nlj_dummy/GetDummyDescriptor.h>
00010 
00011 
00012 class NJDummy : public lama_jockeys::NavigatingJockey
00013 {
00014   public:
00015 
00016     NJDummy(const std::string& name, const std::string& get_service_name);
00017 
00018     virtual void onTraverse();
00019     virtual void onStop();
00020 
00021   private:
00022 
00023     // Name of the getter service as interface to Lama.
00024     std::string get_service_name_;
00025 
00026     // Normal distribution for the traversing time.
00027     const double mean_traversing_time_;
00028     const double max_traversing_delta_;
00029 
00030     double random_duration();
00031     double completion(ros::Duration time_elapsed);
00032 };
00033 
00034 #endif // _NLJ_DUMMY_NJ_DUMMY_H_


nlj_dummy
Author(s): Gaël Ecorchard , Karel Košnar
autogenerated on Thu Jun 6 2019 22:02:12