(gdb) break filename.ext:line
(gdb) info break
(gdb) disable 1
disable breakpoint 1
(gdb) bt
#ifndef LOGGER_HPP | |
#define LOGGER_HPP | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
class Logger | |
{ |
#ifndef TIMER_HPP | |
#define TIMER_HPP | |
#include <chrono> | |
template | |
< | |
typename numeric, | |
typename ratio = std::milli, | |
typename clock = std::chrono::high_resolution_clock |
sudo apt-get install cmake libgtest-dev | |
cd /usr/src/gtest | |
sudo cmake CMakeLists.txt | |
sudo make | |
# copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder | |
sudo cp *.a /usr/lib |
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } | |
inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true) | |
{ | |
if (code != cudaSuccess) | |
{ | |
fprintf(stderr,"GPUassert: %s %s %d\n", cudaGetErrorString(code), file, line); | |
if (abort) exit(code); | |
} | |
} |
#include <tf2/LinearMath/Quaternion.h>
#include <tf/transform_datatypes.h>
...
tf2::Quaternion myQuaternion;
myQuaternion.setRPY( 0, 0, 0 ); // Create this quaternion from roll/pitch/yaw (in radians)
ROS_INFO_STREAM(q); // Print the quaternion components (0,0,0,1)
...
quaternionMsgToTF(quat_msg , quat_tf);
def norm_angle(dw) : | |
if math.fabs(dw) > math.pi : | |
return (-2*math.pi + dw) if dw > 0 else (2*math.pi + dw) | |
else : return dw |