-std=c++0x
29 | ;
30 |
31 | exe lorenz_ensemble : lorenz_ensemble.cpp opencl ;
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/index.html:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 | Automatic redirection failed, please go to
12 | doc/html/index.html
13 |
14 | © Copyright Beman Dawes, 2001
15 | Distributed under the Boost Software
16 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
17 | www.boost.org/LICENSE_1_0.txt)
18 |
19 |
20 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/performance/lorenz_gsl.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * lorenz_gsl.hpp
3 | *
4 | * Copyright 2009-2012 Karsten Ahnert
5 | * Copyright 2009-2012 Mario Mulansky
6 | *
7 | * Distributed under the Boost Software License, Version 1.0.
8 | * (See accompanying file LICENSE_1_0.txt or
9 | * copy at http://www.boost.org/LICENSE_1_0.txt)
10 | */
11 |
12 |
13 | #ifndef LORENZ_GSL_HPP_
14 | #define LORENZ_GSL_HPP_
15 |
16 | #include
17 |
18 | int lorenz_gsl( const double t , const double y[] , double f[] , void *params)
19 | {
20 | const double sigma = 10.0;
21 | const double R = 28.0;
22 | const double b = 8.0 / 3.0;
23 |
24 | f[0] = sigma * ( y[1] - y[0] );
25 | f[1] = R * y[0] - y[1] - y[0] * y[2];
26 | f[2] = y[0]*y[1] - b * y[2];
27 | return GSL_SUCCESS;
28 | }
29 |
30 | #endif
31 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/performance/phase_lattice.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009-2012 Karsten Ahnert
3 | * Copyright 2009-2012 Mario Mulansky
4 | *
5 | * Distributed under the Boost Software License, Version 1.0.
6 | * (See accompanying file LICENSE_1_0.txt or
7 | * copy at http://www.boost.org/LICENSE_1_0.txt)
8 | */
9 |
10 | #include
11 |
12 | #include
13 |
14 | template< size_t N >
15 | struct phase_lattice
16 | {
17 | typedef double value_type;
18 | typedef boost::array< value_type , N > state_type;
19 |
20 | value_type m_epsilon;
21 | state_type m_omega;
22 |
23 | phase_lattice() : m_epsilon( 6.0/(N*N) ) // should be < 8/N^2 to see phase locking
24 | {
25 | for( size_t i=1 ; i
12 |
13 | using namespace std;
14 |
15 | struct rt_algebra
16 | {
17 | template< typename T , size_t dim >
18 | inline static void foreach( boost::array< T , dim > & x_tmp ,
19 | const boost::array< T , dim > &x ,
20 | //const vector< double > &a ,
21 | const double* a ,
22 | const boost::array< T , dim > *k_vector ,
23 | const double dt , const size_t s )
24 | {
25 | for( size_t i=0 ; i/boost/test//boost_unit_test_framework
15 | BOOST_ALL_NO_LIB=1
16 | ../../../..
17 | static
18 | clang:-Wno-unused-variable
19 |
20 | # -D_SCL_SECURE_NO_WARNINGS
21 | ;
22 |
23 | test-suite "odeint"
24 | :
25 | [ run runge_kutta.cpp ]
26 | [ run symplectic.cpp ]
27 | [ run rosenbrock.cpp ]
28 | : valgrind
29 | ;
30 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/gmp/Jamfile.v2:
--------------------------------------------------------------------------------
1 | # (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky
2 | # Distributed under the Boost Software License, Version 1.0.
3 | # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 |
5 | # bring in rules for testing
6 |
7 | import testing ;
8 | use-project boost : $(BOOST_ROOT) ;
9 |
10 | project gmp
11 | : requirements
12 | /boost/test//boost_unit_test_framework
13 | ../../../../..
14 | ;
15 |
16 |
17 | lib libgmp : : gmp shared ;
18 | lib libgmpxx : : gmpxx shared ;
19 |
20 | test-suite "gmp"
21 | :
22 | [ run check_gmp.cpp libgmpxx libgmp : : : shared:BOOST_TEST_DYN_LINK=1 ]
23 | [ run gmp_integrate.cpp libgmpxx libgmp : : : shared:BOOST_TEST_DYN_LINK=1 ]
24 | ;
25 |
26 |
27 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/gsl/Jamfile.v2:
--------------------------------------------------------------------------------
1 | # (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky
2 | # Distributed under the Boost Software License, Version 1.0.
3 | # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 |
5 | # bring in rules for testing
6 |
7 | import testing ;
8 | use-project boost : $(BOOST_ROOT) ;
9 |
10 | project
11 | : requirements
12 | /boost/test//boost_unit_test_framework
13 | ../../../../..
14 | ;
15 |
16 |
17 | lib libgsl : : gsl shared ;
18 | lib libgslcblas : : gslcblas shared ;
19 |
20 | test-suite "gsl"
21 | :
22 | [ run check_gsl.cpp libgslcblas libgsl
23 | :
24 | :
25 | : shared:BOOST_TEST_DYN_LINK=1
26 | ]
27 | ;
28 |
29 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/mkl/Jamfile.v2:
--------------------------------------------------------------------------------
1 | # (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky
2 | # Distributed under the Boost Software License, Version 1.0.
3 | # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 |
5 | # bring in rules for testing
6 |
7 | import testing ;
8 | use-project boost : $(BOOST_ROOT) ;
9 |
10 | project
11 | : requirements
12 | /boost/test//boost_unit_test_framework
13 | ../../../../..
14 | ;
15 |
16 |
17 | lib libmkl : : mkl_intel_lp64 shared ;
18 | lib libmkl_core : : mkl_core shared ;
19 | lib libmkl_intel_thread : : mkl_intel_thread ;
20 | lib libiomp5 : : iomp5 ;
21 | lib libpthread : : pthread ;
22 |
23 | test-suite "mkl"
24 | :
25 | [ run check_mkl.cpp libpthread libiomp5 libmkl_core libmkl_intel_thread libmkl
26 | :
27 | :
28 | : shared:BOOST_TEST_DYN_LINK=1
29 | ]
30 | ;
31 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/mtl4/Jamfile.v2:
--------------------------------------------------------------------------------
1 | # Copyright 2009 Karsten Ahnert and Mario Mulansky.
2 | # Distributed under the Boost Software License, Version 1.0. (See
3 | # accompanying file LICENSE_1_0.txt or copy at
4 | # http://www.boost.org/LICENSE_1_0.txt)
5 |
6 | import testing ;
7 | import boost ;
8 |
9 | boost.use-project ;
10 |
11 | MTL4_INCLUDE = /home/karsten/boost/MTL-4.0.8862-Linux/usr/include ;
12 |
13 | project
14 | : requirements
15 | /boost/test//boost_unit_test_framework
16 | ../../../../..
17 | $(MTL4_INCLUDE)
18 | BOOST_ALL_NO_LIB=1
19 | static
20 | :
21 | : default-build release
22 | ;
23 |
24 | test-suite "odeint-mtl4"
25 | :
26 | [ run mtl4_resize.cpp ]
27 | : valgrind
28 | ;
29 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/thrust/Makefile:
--------------------------------------------------------------------------------
1 | # Copyright 2009-2012 Karsten Ahnert
2 | # Copyright 2009-2012 Mario Mulansky
3 | #
4 | # Distributed under the Boost Software License, Version 1.0.
5 | # (See accompanying file LICENSE_1_0.txt or
6 | # copy at http://www.boost.org/LICENSE_1_0.txt)
7 |
8 |
9 |
10 | CUDA_ROOT = /usr/local/cuda
11 |
12 | CC = gcc-4.4
13 | CXX = gcc-4.4
14 | NVCC = $(CUDA_ROOT)/bin/nvcc
15 |
16 | INCLUDES += -I$(BOOST_ROOT) -I$(THRUST_ROOT) -I$(CUDA_ROOT)/include -I../../../../..
17 |
18 | NVCCFLAGS = -O3 $(INCLUDES) --compiler-bindir=/usr/bin/g++-4.4
19 |
20 | LDLIBS = -lcudart
21 | LDFLAGS = -L$(CUDA_ROOT)/lib64
22 |
23 | %.co : %.cu
24 | $(NVCC) $(NVCCFLAGS) -o $@ -c $<
25 |
26 |
27 | all : check_thrust
28 |
29 |
30 | check_thrust : check_thrust.co
31 | $(CC) -o check_thrust $(LDFLAGS) $(LDLIBS) check_thrust.co
32 | check_thrust.co : check_thrust.cu
33 |
34 | clean :
35 | -rm *~ *.o *.co check_thrust
36 |
37 |
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/include/ode/libs/numeric/odeint/test_external/vexcl/Jamfile.v2:
--------------------------------------------------------------------------------
1 | # (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky
2 | # Distributed under the Boost Software License, Version 1.0.
3 | # (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 |
5 | # bring in rules for testing
6 |
7 |
8 | import testing ;
9 |
10 | use-project boost : $(BOOST_ROOT) ;
11 | VEXCL_INCLUDE = /home/karsten/boost/vexcl ;
12 | CUDA_INCLUDE = /usr/local/cuda/include ;
13 |
14 |
15 | project
16 | : requirements
17 | /boost/test//boost_unit_test_framework
18 | BOOST_ALL_NO_LIB=1
19 | ../../../../..
20 | $(VEXCL_INCLUDE)
21 | $(CUDA_INCLUDE)
22 | -std=c++0x
23 | ;
24 |
25 | lib OpenCL : : OpenCL shared ;
26 |
27 | test-suite "odeint"
28 | :
29 | [ run lorenz.cpp OpenCL ]
30 | : valgrind
31 | :
32 | : shared:BOOST_TEST_DYN_LINK=1
33 | ;
--------------------------------------------------------------------------------
/uav_simulator/so3_quadrotor_simulator/package.xml:
--------------------------------------------------------------------------------
1 |
2 | 0.0.0
3 | so3_quadrotor_simulator
4 |
5 |
6 | quadrotor_simulator
7 |
8 |
9 |
10 | Kartik Mohta
11 | BSD
12 | http://ros.org/wiki/quadrotor_simulator
13 |
14 | catkin
15 |
16 | roscpp
17 | quadrotor_msgs
18 | uav_utils
19 | cmake_utils
20 |
21 | roscpp
22 | quadrotor_msgs
23 | uav_utils
24 | cmake_utils
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/visualization_utils/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.8.3)
2 | project(visualization_utils)
3 |
4 | set(CMAKE_BUILD_TYPE "Release")
5 | set(CMAKE_CXX_FLAGS "-std=c++11")
6 | set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
7 |
8 | find_package(catkin REQUIRED COMPONENTS
9 | roscpp
10 | rospy
11 | std_msgs
12 | visualization_msgs
13 | )
14 |
15 | find_package(Eigen3 REQUIRED)
16 |
17 | catkin_package(
18 | INCLUDE_DIRS include
19 | LIBRARIES visualization_utils
20 | # CATKIN_DEPENDS roscpp rospy std_msgs visualization_msgs
21 | # DEPENDS system_lib
22 | )
23 |
24 | include_directories(
25 | include
26 | ${catkin_INCLUDE_DIRS}
27 | ${EIGEN3_INCLUDE_DIR}
28 | )
29 |
30 | ## Declare a C++ library
31 | add_library(${PROJECT_NAME}
32 | src/visualization_utils.cpp
33 | )
34 |
35 | target_link_libraries(${PROJECT_NAME}
36 | ${catkin_LIBRARIES}
37 | )
38 |
39 |
--------------------------------------------------------------------------------