/home/laradmin/lar/bases/atlascar_ptu/src/ptu_interactive_control.cpp File Reference

This code publishes rviz interactive markers for ptu direct control. More...

#include <ros/ros.h>
#include <features.h>
#include <bits/wordsize.h>
#include <gnu/stubs-32.h>
#include <stddef.h>
#include <bits/types.h>
#include <time.h>
#include <string>
#include <iostream>
#include <cmath>
#include <stdexcept>
#include "duration.h"
#include <cstddef>
#include <utility>
#include <boost/config.hpp>
#include <limits>
#include <limits.h>
#include <algorithm>
#include <climits>
#include <iomanip>
#include <cerrno>
#include <boost/config/no_tr1/cmath.hpp>
#include <boost/math/tools/config.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/mpl/aux_/config/gcc.hpp>
#include <boost/mpl/aux_/config/workaround.hpp>
#include <boost/mpl/aux_/adl_barrier.hpp>
#include <boost/mpl/aux_/config/static_constant.hpp>
#include <boost/mpl/aux_/config/msvc.hpp>
#include <boost/preprocessor/config/config.hpp>
#include <boost/mpl/aux_/config/ctps.hpp>
#include <boost/mpl/aux_/config/preprocessor.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/has_xxx.hpp>
#include <boost/mpl/aux_/na.hpp>
#include <boost/mpl/aux_/config/ttp.hpp>
#include <boost/mpl/aux_/nttp_decl.hpp>
#include <boost/mpl/integral_c_tag.hpp>
#include <boost/mpl/int.hpp>
#include <boost/mpl/aux_/config/dtp.hpp>
#include <boost/mpl/aux_/template_arity_fwd.hpp>
#include <boost/preprocessor/logical/bool.hpp>
#include <boost/preprocessor/facilities/empty.hpp>
#include <boost/mpl/aux_/lambda_arity_param.hpp>
#include <boost/mpl/aux_/config/lambda.hpp>
#include <boost/mpl/aux_/config/overload_resolution.hpp>
#include <boost/mpl/aux_/yes_no.hpp>
#include <boost/mpl/aux_/config/eti.hpp>
#include <boost/mpl/contains_fwd.hpp>
#include <boost/mpl/begin_end_fwd.hpp>
#include <boost/mpl/sequence_tag_fwd.hpp>
#include <boost/mpl/void_fwd.hpp>
#include <boost/mpl/aux_/na_spec.hpp>
#include <boost/mpl/aux_/static_cast.hpp>
#include <boost/mpl/aux_/config/integral.hpp>
#include <boost/mpl/aux_/lambda_support.hpp>
#include <boost/mpl/aux_/has_begin.hpp>
#include <boost/mpl/void.hpp>
#include <boost/mpl/aux_/preprocessor/params.hpp>
#include <boost/mpl/sequence_tag.hpp>
#include <boost/mpl/aux_/config/use_preprocessed.hpp>
#include <boost/mpl/aux_/include_preprocessed.hpp>
#include <boost/mpl/aux_/arity.hpp>
#include <boost/mpl/aux_/config/has_xxx.hpp>
#include <boost/mpl/aux_/value_wknd.hpp>
#include <boost/mpl/aux_/nested_type_wknd.hpp>
#include <boost/mpl/aux_/config/nttp.hpp>
#include <boost/mpl/limits/arity.hpp>
#include <boost/mpl/lambda_fwd.hpp>
#include <boost/mpl/placeholders.hpp>
#include <boost/mpl/apply_wrap.hpp>
#include <boost/mpl/aux_/arity_spec.hpp>
#include <boost/mpl/aux_/type_wrapper.hpp>
#include <boost/mpl/aux_/config/bind.hpp>
#include <boost/mpl/bind_fwd.hpp>
#include <boost/mpl/protect.hpp>
#include <boost/mpl/arg.hpp>
#include <boost/mpl/int_fwd.hpp>
#include <boost/mpl/aux_/is_msvc_eti_arg.hpp>
#include <boost/mpl/not.hpp>
#include <boost/mpl/begin_end.hpp>
#include <boost/mpl/aux_/preprocessor/def_params_tail.hpp>
#include <boost/mpl/eval_if.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/apply.hpp>
#include <boost/mpl/next.hpp>
#include <boost/mpl/aux_/integral_wrapper.hpp>
#include <boost/mpl/aux_/common_name_wknd.hpp>
#include <boost/mpl/aux_/config/forwarding.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/mpl/aux_/traits_lambda_spec.hpp>
#include <boost/mpl/find_if.hpp>
#include <boost/mpl/O1_size_fwd.hpp>
#include <boost/mpl/next_prior.hpp>
#include <boost/mpl/deref.hpp>
#include <boost/mpl/O1_size.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/mpl/lambda.hpp>
#include <boost/mpl/push_back_fwd.hpp>
#include <boost/mpl/assert.hpp>
#include <boost/mpl/aux_/has_type.hpp>
#include <boost/mpl/push_front_fwd.hpp>
#include <boost/mpl/inserter.hpp>
#include <boost/mpl/push_back.hpp>
#include <boost/mpl/push_front.hpp>
#include <boost/mpl/back_inserter.hpp>
#include <boost/mpl/front_inserter.hpp>
#include <boost/mpl/clear_fwd.hpp>
#include <boost/preprocessor/inc.hpp>
#include <boost/mpl/aux_/has_tag.hpp>
#include <boost/mpl/numeric_cast.hpp>
#include <boost/mpl/aux_/msvc_eti_base.hpp>
#include <boost/mpl/integral_c.hpp>
#include <boost/mpl/long.hpp>
#include <boost/mpl/tag.hpp>
#include <boost/mpl/size_fwd.hpp>
#include <boost/mpl/aux_/comparison_op.hpp>
#include <boost/mpl/less.hpp>
#include <stdlib.h>
#include <endian.h>
#include <bits/mathcalls.h>
#include <boost/limits.hpp>
#include <boost/assert.hpp>
#include <boost/static_assert.hpp>
#include <boost/math/policies/policy.hpp>
#include <math.h>
#include <boost/cstdint.hpp>
#include <vector>
#include <locale>
#include <streambuf>
#include <ostream>
#include <iosfwd>
#include <boost/format/detail/compat_workarounds.hpp>
#include <boost/format/format_fwd.hpp>
#include <new>
#include <boost/type_traits/config.hpp>
#include <boost/type_traits/detail/template_arity_spec.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/preprocessor/arithmetic/inc.hpp>
#include <boost/preprocessor/control/iif.hpp>
#include <boost/preprocessor/tuple/eat.hpp>
#include <boost/preprocessor/debug/error.hpp>
#include <boost/preprocessor/detail/auto_rec.hpp>
#include <boost/preprocessor/control/while.hpp>
#include <boost/preprocessor/control/expr_iif.hpp>
#include <boost/preprocessor/list/adt.hpp>
#include <boost/preprocessor/list/fold_right.hpp>
#include <boost/preprocessor/logical/bitand.hpp>
#include <boost/preprocessor/list/fold_left.hpp>
#include <boost/preprocessor/tuple/elem.hpp>
#include <boost/preprocessor/tuple/rem.hpp>
#include <boost/type_traits/alignment_of.hpp>
#include <boost/type_traits/detail/bool_trait_def.hpp>
#include <boost/type_traits/detail/bool_trait_undef.hpp>
#include <boost/type_traits/intrinsics.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
#include <boost/type_traits/is_reference.hpp>
#include <boost/type_traits/add_reference.hpp>
#include <boost/type_traits/detail/yes_no_type.hpp>
#include <boost/type_traits/detail/ice_or.hpp>
#include <boost/type_traits/is_void.hpp>
#include <boost/type_traits/detail/type_trait_def.hpp>
#include <boost/type_traits/detail/type_trait_undef.hpp>
#include <boost/type_traits/detail/ice_and.hpp>
#include <boost/type_traits/detail/ice_not.hpp>
#include <boost/type_traits/is_array.hpp>
#include <boost/type_traits/is_class.hpp>
#include <boost/type_traits/is_union.hpp>
#include <boost/type_traits/remove_cv.hpp>
#include <boost/type_traits/is_member_pointer.hpp>
#include <boost/type_traits/broken_compiler_spec.hpp>
#include <boost/type_traits/detail/cv_traits_impl.hpp>
#include <boost/type_traits/is_pod.hpp>
#include <functional>
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/arithmetic/dec.hpp>
#include <memory>
#include <exception>
#include <boost/checked_delete.hpp>
#include <boost/throw_exception.hpp>
#include <typeinfo>
#include <boost/smart_ptr/detail/sp_counted_base.hpp>
#include <boost/config/no_tr1/memory.hpp>
#include <boost/smart_ptr/detail/sp_has_sync.hpp>
#include <boost/optional.hpp>
#include <boost/format/internals_fwd.hpp>
#include <boost/format/internals.hpp>
#include <boost/format/alt_sstream.hpp>
#include <boost/format/format_class.hpp>
#include <boost/format/group.hpp>
#include <boost/format/exceptions.hpp>
#include <boost/math/special_functions/detail/round_fwd.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <boost/type_traits/is_integral.hpp>
#include <boost/type_traits/is_convertible.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/or.hpp>
#include <boost/mpl/comparison.hpp>
#include <complex>
#include <cstring>
#include "rostime_decl.h"
#include <bits/time.h>
#include <sys/select.h>
#include "ros/time.h"
#include <cstdio>
#include <sstream>
#include <cstdarg>
#include <log4cxx/logstring.h>
#include <log4cxx/log4cxx.h>
#include <log4cxx/helpers/objectptr.h>
#include <map>
#include <log4cxx/helpers/object.h>
#include <log4cxx/helpers/objectimpl.h>
#include <log4cxx/helpers/pool.h>
#include <log4cxx/helpers/mutex.h>
#include <log4cxx/appender.h>
#include <log4cxx/logger.h>
#include <log4cxx/level.h>
#include "ros/console.h"
#include <ros/platform.h>
#include <assert.h>
#include "ros/assert.h"
#include <set>
#include <list>
#include <boost/shared_ptr.hpp>
#include <boost/smart_ptr/detail/shared_count.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/preprocessor/array/size.hpp>
#include <cassert>
#include <stdarg.h>
#include <bits/wchar.h>
#include <boost/type_traits/has_trivial_copy.hpp>
#include <boost/type_traits/is_volatile.hpp>
#include <boost/type_traits/is_enum.hpp>
#include <boost/type_traits/is_member_function_pointer.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/ice.hpp>
#include <boost/preprocessor/repetition/enum_params.hpp>
#include <ros/macros.h>
#include "roscpp_serialization_macros.h"
#include <boost/smart_ptr/detail/operator_bool.hpp>
#include <boost/shared_array.hpp>
#include <stdint.h>
#include "ros/forwards.h"
#include "ros/common.h"
#include <xlocale.h>
#include <iterator>
#include <ros/types.h>
#include "serialized_message.h"
#include "message_forward.h"
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include "message_traits.h"
#include "ros/exception.h"
#include <boost/array.hpp>
#include <boost/ref.hpp>
#include <boost/mem_fn.hpp>
#include <boost/type.hpp>
#include <boost/is_placeholder.hpp>
#include <boost/bind/arg.hpp>
#include "common.h"
#include <ros/message_traits.h>
#include <boost/type_traits/is_const.hpp>
#include <boost/type_traits/remove_const.hpp>
#include <boost/function.hpp>
#include <boost/type_traits/type_with_alignment.hpp>
#include <ros/static_assert.h>
#include <boost/type_traits/add_const.hpp>
#include "ros/builtin_message_traits.h"
#include "ros/serialization.h"
#include "ros/message_event.h"
#include <boost/type_traits/is_base_of.hpp>
#include <boost/make_shared.hpp>
#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 <istream>
#include <boost/call_traits.hpp>
#include <ios>
#include <boost/integer_traits.hpp>
#include <boost/type_traits/is_abstract.hpp>
#include "subscription_callback_helper.h"
#include "ros/spinner.h"
#include <boost/bind.hpp>
#include "ros/publisher.h"
#include <boost/utility/addressof.hpp>
#include <boost/utility/base_from_member.hpp>
#include <boost/preprocessor/facilities/identity.hpp>
#include <boost/preprocessor/control/if.hpp>
#include <boost/preprocessor/seq/seq.hpp>
#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/seq/fold_left.hpp>
#include <boost/preprocessor/arithmetic/sub.hpp>
#include <boost/preprocessor/logical/compl.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 "ros/message_operations.h"
#include "geometry_msgs/Quaternion.h"
#include "std_msgs/Header.h"
#include "geometry_msgs/Pose.h"
#include "geometry_msgs/Point.h"
#include "std_msgs/ColorRGBA.h"
#include "platform.hpp"
#include <boost/config/abi_prefix.hpp>
#include <boost/config/abi_suffix.hpp>
#include <boost/thread/detail/platform.hpp>
#include <boost/thread/detail/config.hpp>
#include <cstdlib>
#include <boost/config/auto_link.hpp>
#include <ctime>
#include <boost/date_time/compiler_config.hpp>
#include "boost/date_time/c_time.hpp"
#include "boost/date_time/time_clock.hpp"
#include "boost/date_time/microsec_time_clock.hpp"
#include <boost/date_time/time_defs.hpp>
#include "boost/date_time/special_defs.hpp"
#include "boost/date_time/locale_config.hpp"
#include "boost/operators.hpp"
#include "boost/date_time/constrained_value.hpp"
#include "boost/date_time/year_month_day.hpp"
#include "boost/date_time/date_defs.hpp"
#include <cctype>
#include "boost/date_time/int_adapter.hpp"
#include <boost/date_time/date_duration.hpp>
#include <boost/date_time/date.hpp>
#include <boost/date_time/gregorian/greg_calendar.hpp>
#include <boost/date_time/gregorian/greg_duration.hpp>
#include <boost/date_time/date_duration_types.hpp>
#include "boost/date_time/gregorian/greg_date.hpp"
#include "boost/date_time/adjust_functors.hpp"
#include <boost/date_time/wrapping_int.hpp>
#include "boost/date_time/gregorian/greg_duration_types.hpp"
#include "boost/date_time/posix_time/ptime.hpp"
#include "boost/date_time/posix_time/posix_time_config.hpp"
#include "boost/date_time/posix_time/posix_time_system.hpp"
#include "boost/date_time/period.hpp"
#include "boost/date_time/posix_time/posix_time_duration.hpp"
#include "boost/date_time/date_generators.hpp"
#include "boost/date_time/filetime_functions.hpp"
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <boost/utility.hpp>
#include <ros/ros.h>
#include <boost/thread/mutex.hpp>
#include <boost/thread/detail/thread_heap_alloc.hpp>
#include <deque>
#include <boost/functional/hash/hash_fwd.hpp>
#include <boost/functional/hash/detail/float_functions.hpp>
#include <boost/integer/static_log2.hpp>
#include <boost/functional/hash/detail/limits.hpp>
#include <boost/functional/hash/hash.hpp>
#include <boost/iterator.hpp>
#include <boost/detail/iterator.hpp>
#include <boost/utility/swap.hpp>
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/unordered/detail/hash_table_impl.hpp>
#include <boost/unordered/detail/config.hpp>
#include <initializer_list>
#include <visualization_msgs/MenuEntry.h>
#include <interactive_markers/interactive_marker_server.h>
#include <boost/unordered_map.hpp>
#include "geometry_msgs/Vector3.h"
#include "btMatrix3x3.h"
#include "tf/exceptions.h"
#include "LinearMath/btTransform.h"
#include <boost/scoped_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <boost/smart_ptr/detail/sp_convertible.hpp>
#include <boost/config/no_tr1/functional.hpp>
#include <boost/smart_ptr/weak_ptr.hpp>
#include <boost/signals/detail/signals_common.hpp>
#include <boost/signals/connection.hpp>
#include "boost/type_traits/add_pointer.hpp"
#include "boost/type_traits/add_volatile.hpp"
#include "boost/type_traits/has_nothrow_copy.hpp"
#include <boost/type_traits/has_trivial_destructor.hpp>
#include "boost/type_traits/has_trivial_assign.hpp"
#include "boost/type_traits/has_trivial_constructor.hpp"
#include "boost/type_traits/is_signed.hpp"
#include "boost/type_traits/is_unsigned.hpp"
#include "boost/type_traits/is_base_and_derived.hpp"
#include "boost/type_traits/is_float.hpp"
#include "boost/type_traits/is_function.hpp"
#include "boost/type_traits/is_fundamental.hpp"
#include "boost/type_traits/is_scalar.hpp"
#include <boost/type_traits/is_empty.hpp>
#include <boost/type_traits/detail/size_t_trait_def.hpp>
#include <boost/type_traits/detail/size_t_trait_undef.hpp>
#include "boost/type_traits/function_traits.hpp"
#include "boost/type_traits/aligned_storage.hpp"
#include <boost/type_traits/integral_promotion.hpp>
#include <boost/type_traits/floating_point_promotion.hpp>
#include <boost/type_traits/make_unsigned.hpp>
#include <boost/type_traits/remove_bounds.hpp>
#include <boost/visit_each.hpp>
#include <boost/signals/detail/config.hpp>
#include <boost/function/detail/prologue.hpp>
#include <boost/iterator/detail/config_def.hpp>
#include <boost/iterator/detail/config_undef.hpp>
#include <boost/iterator/iterator_categories.hpp>
#include <boost/type_traits/remove_pointer.hpp>
#include <boost/mpl/always.hpp>
#include <boost/signals/trackable.hpp>
#include <boost/signals/slot.hpp>
#include <boost/smart_ptr.hpp>
#include <boost/function/function2.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/signals/signal_template.hpp>
#include "geometry_msgs/TransformStamped.h"
#include <tf/tf.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void alignMarker (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void frameCallback (const ros::TimerEvent &)
int main (int argc, char **argv)
void make6DofMarker (bool fixed)
Marker makeBox (InteractiveMarker &msg)
InteractiveMarkerControl & makeBoxControl (InteractiveMarker &msg)
void makeChessPieceMarker ()
void makeMenuMarker ()
void makeMovingMarker ()
void makePanTiltMarker ()
void makeQuadrocopterMarker ()
void makeRandomDofMarker ()
void makeViewFacingMarker ()
void processFeedback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
double rand (double min, double max)
void saveMarker (InteractiveMarker int_marker)

Variables

float marker_pos = 0
interactive_markers::MenuHandler menu_handler
ros::Publisher pub
boost::shared_ptr
< interactive_markers::InteractiveMarkerServer > 
server

Detailed Description

This code publishes rviz interactive markers for ptu direct control.

Author:
Miguel Oliveira
Version:
v0
Date:
2012-03-02

Definition in file ptu_interactive_control.cpp.


Function Documentation

void alignMarker ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback  ) 

Definition at line 160 of file ptu_interactive_control.cpp.

void frameCallback ( const ros::TimerEvent &   ) 

Definition at line 56 of file ptu_interactive_control.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 521 of file ptu_interactive_control.cpp.

void make6DofMarker ( bool  fixed  ) 

Definition at line 225 of file ptu_interactive_control.cpp.

Marker makeBox ( InteractiveMarker &  msg  ) 

Definition at line 189 of file ptu_interactive_control.cpp.

InteractiveMarkerControl& makeBoxControl ( InteractiveMarker &  msg  ) 

Definition at line 205 of file ptu_interactive_control.cpp.

void makeChessPieceMarker (  ) 

Definition at line 388 of file ptu_interactive_control.cpp.

void makeMenuMarker (  ) 

Definition at line 460 of file ptu_interactive_control.cpp.

void makeMovingMarker (  ) 

Definition at line 491 of file ptu_interactive_control.cpp.

void makePanTiltMarker (  ) 

Definition at line 422 of file ptu_interactive_control.cpp.

void makeQuadrocopterMarker (  ) 

Definition at line 359 of file ptu_interactive_control.cpp.

void makeRandomDofMarker (  ) 

Definition at line 287 of file ptu_interactive_control.cpp.

void makeViewFacingMarker (  ) 

Definition at line 320 of file ptu_interactive_control.cpp.

void processFeedback ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback  ) 

Definition at line 79 of file ptu_interactive_control.cpp.

double rand ( double  min,
double  max 
)

Definition at line 182 of file ptu_interactive_control.cpp.

void saveMarker ( InteractiveMarker  int_marker  ) 

Definition at line 216 of file ptu_interactive_control.cpp.


Variable Documentation

float marker_pos = 0

Definition at line 50 of file ptu_interactive_control.cpp.

interactive_markers::MenuHandler menu_handler

Definition at line 51 of file ptu_interactive_control.cpp.

ros::Publisher pub

Definition at line 52 of file ptu_interactive_control.cpp.

boost::shared_ptr<interactive_markers::InteractiveMarkerServer> server

Definition at line 49 of file ptu_interactive_control.cpp.

 All Files Functions Variables


atlascar_ptu
Author(s): Miguel Oliveira
autogenerated on Wed Jul 23 04:34:47 2014