Skip to content

Instantly share code, notes, and snippets.

View botaohu's full-sized avatar

Botao Amber Hu botaohu

View GitHub Profile
@botaohu
botaohu / gist:e9309d75967f557ddde9bae5ea4f648b
Created November 27, 2023 07:16
Unity Package Structure Standard
<package-root>
├── package.json
├── README.md
├── CHANGELOG.md
├── LICENSE.md
├── Third Party Notices.md
├── Assets
│ └── Scenes
│ └── Materials
├── Editor
@botaohu
botaohu / rosrun_fix.patch
Created February 25, 2016 02:14
rosrun fix
diff --git a/rosrun b/rosrun
index 7ec36d9..ce63876 100755
--- a/rosrun
+++ b/rosrun
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/ros/indigo/install_isolated/lib
+
function usage() {
@botaohu
botaohu / fix_rqt_image_view.patch
Last active February 25, 2016 02:18
rqt_image_view DYLD
diff --git a/rqt_image_view b/rqt_image_view
index c928336..94d91d5 100755
--- a/rqt_image_view
+++ b/rqt_image_view
@@ -1,8 +1,17 @@
-#!/usr/bin/env python
+#!/usr/bin/env bash
+export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/opt/ros/indigo/install_isolated/lib
+
@botaohu
botaohu / hector_quadrotor_pose_estimation.patch
Created February 24, 2016 23:19
osx hector_quadrotor_pose_estimation fix
diff --git a/hector_quadrotor_pose_estimation/CMakeLists.txt b/hector_quadrotor_pose_estimation/CMakeLists.txt
index a11c4f6..ce2a19b 100644
--- a/hector_quadrotor_pose_estimation/CMakeLists.txt
+++ b/hector_quadrotor_pose_estimation/CMakeLists.txt
@@ -6,6 +6,9 @@ project(hector_quadrotor_pose_estimation)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS hector_pose_estimation hector_uav_msgs)
+if(APPLE)
+ add_definitions(-Dsincos=__sincos)
@botaohu
botaohu / hector_quadrotor_gazebo_plugins.patch
Created February 24, 2016 23:02
osx hector_quadrotor_gazebo_plugins fix
diff --git a/hector_quadrotor_gazebo_plugins/CMakeLists.txt b/hector_quadrotor_gazebo_plugins/CMakeLists.txt
index ae29c8f..2ae307f 100644
--- a/hector_quadrotor_gazebo_plugins/CMakeLists.txt
+++ b/hector_quadrotor_gazebo_plugins/CMakeLists.txt
@@ -4,7 +4,7 @@ project(hector_quadrotor_gazebo_plugins)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
-find_package(catkin REQUIRED COMPONENTS roscpp hector_gazebo_plugins hector_quadrotor_model geometry_msgs hector_uav_msgs)
+find_package(catkin REQUIRED COMPONENTS roscpp hector_gazebo_plugins hector_quadrotor_model geometry_msgs hector_uav_msgs dynamic_reconfigure)
@botaohu
botaohu / hector_pose_estimation_core.patch
Created February 24, 2016 21:46
osx patch for hector_pose_estimation_core
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a5295a9..543974c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -87,6 +87,9 @@ message(STATUS "CMAKE_CXX_FLAGS_RELWITHDEBINFO: ${CMAKE_CXX_FLAGS_RELWITHDEBINFO
message(STATUS "CMAKE_CXX_FLAGS_MINSIZEREL: ${CMAKE_CXX_FLAGS_MINSIZEREL}")
message(STATUS "CMAKE_CXX_FLAGS_DEBUG: ${CMAKE_CXX_FLAGS_DEBUG}")
+if(APPLE)
+ add_definitions(-Dsincos=__sincos)
@botaohu
botaohu / hector_pose_estimation.patch
Created February 24, 2016 21:45
patch for hector_pose_estimation osx
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39f892b..2e9f1e6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,10 @@ if(hector_timing_FOUND)
list(APPEND catkin_LIBRARIES ${hector_timing_LIBRARIES})
endif()
+if(APPLE)
+ add_definitions(-Dsincos=__sincos)
@botaohu
botaohu / ros_osx_install.sh
Last active February 24, 2016 23:23
ros install scripts osx
#!/usr/bin/env bash
BASE="/opt/ros/indigo"
brew install openssl
brew link openssl --force
brew uninstall opencv
brew install botaohu/drone/ogre
brew install opencv3 --with-contrib --c++11 --with-ffmpeg --with-java --with-gphoto2 --with-tbb
brew link opencv3 --force
@botaohu
botaohu / upgrade.sh
Created February 24, 2016 19:07
upgrade all non bottled formula to bottled
#!/bin/bash
showword() {
a=`brew info "$1" | grep "bottled"`
b=`brew info "$1" | grep "Poured from bottle"`
if [ -n "$a" ]; then
if [ -n "$b" ]; then
:
else
echo "$1"
diff --git a/CMake/Packages/FindFreetype.cmake b/CMake/Packages/FindFreetype.cmake
index 0ce8bb7..1799ad3 100644
--- a/CMake/Packages/FindFreetype.cmake
+++ b/CMake/Packages/FindFreetype.cmake
@@ -31,7 +31,7 @@ clear_if_changed(FREETYPE_PREFIX_PATH
FREETYPE_INCLUDE_DIR
)
-set(FREETYPE_LIBRARY_NAMES freetype2410 freetype249 freetype248 freetype246 freetype2311 freetype239 freetype238 freetype235 freetype219 freetype)
+set(FREETYPE_LIBRARY_NAMES freetype253 freetype252 freetype251 freetype2501 freetype250 freetype2412 freetype2411 freetype2410 freetype249 freetype248 freetype246 freetype2311 freetype239 freetype238 freetype235 freetype219 freetype)