Skip to content

Instantly share code, notes, and snippets.

View mickeyouyou's full-sized avatar
🌏
searching and reading

Zongbao Feng mickeyouyou

🌏
searching and reading
View GitHub Profile
diff --git a/WORKSPACE.in b/WORKSPACE.in
index 83448881a..24d84c83a 100644
--- a/WORKSPACE.in
+++ b/WORKSPACE.in
@@ -86,6 +86,13 @@ new_local_repository(
path = "/home/tmp/ros",
)
+# qt
+new_local_repository(
[WARNING] nvidia-docker is in deprecation! Please upgrade docker to 19.03+ according to
[WARNING] https://github.com/NVIDIA/nvidia-docker/blob/master/README.md#upgrading-with-nvidia-docker2-deprecated
#!/usr/bin/env bash
g++ pcl_o.cc -o pcl-o -L/usr/lib/aarch64-linux-gnu -lboost_system -lpcl_common -lpcl_features -lpcl_filters -lpcl_io_ply -lpcl_io -lpcl_kdtree -lpcl_search -lpcl_segmentation -lpcl_sample_consensus
@mickeyouyou
mickeyouyou / april.diff
Last active July 23, 2019 06:40
because of multiple python version link error build failed , so comment these cmake codes for now
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7376b45..d7413d4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,7 +23,7 @@ else()
target_link_libraries(${PROJECT_NAME} Threads::Threads m)
endif()
-set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 3 VERSION 3.1.0)
+set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 3 VERSION 3.1.0 C_STANDARD 11)
@mickeyouyou
mickeyouyou / bash
Created July 22, 2019 09:53
apriltag build
cmake . -DPYTHON_INCLUDE_DIR=/usr/local/miniconda/include/python3.7m -DPYTHON_LIBRARY=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/libpython3.7.so
@mickeyouyou
mickeyouyou / chassis_component.cc
Last active July 18, 2019 04:24
async+atomic
#include <algorithm>
#include <future>
#include <iostream>
#include <mutex>
#include <numeric>
#include <string>
#include <vector>
class ChassisComponent {
public:
@mickeyouyou
mickeyouyou / solution.cc
Created May 23, 2019 04:37
linked list 快慢指针: 1.慢指针一次走一步,快指针一次走2步,快指针走到末端,慢指针正好指向中间结点; 2.这里分两种情况: 快指针的next为null,慢指针正好指向中间结点,链表结点数为偶数; 快指针为null,慢指针正好指向第二个中间结点,链表结点数为奇数;
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
cout <<"Hello World" << endl;
@mickeyouyou
mickeyouyou / time.cpp
Created April 16, 2019 08:40
ros comm time cpp
00282 bool Time::waitForValid(const ros::WallDuration& timeout)
00283 {
00284 ros::WallTime start = ros::WallTime::now();
00285 while (!isValid() && !g_stopped)
00286 {
00287 ros::WallDuration(0.01).sleep();
00288
00289 if (timeout > ros::WallDuration(0, 0) && (ros::WallTime::now() - start > timeout))
00290 {
00291 return false;
@mickeyouyou
mickeyouyou / duration.h
Created April 16, 2019 07:12
ros time implementation
00035 #ifndef _ROS_DURATION_H_
00036 #define _ROS_DURATION_H_
00037
00038 #include <math.h>
00039
00040 namespace ros {
00041
00042 void normalizeSecNSecSigned(long& sec, long& nsec);
00043
00044 class Duration