Skip to content

Instantly share code, notes, and snippets.

@acxz
acxz / cmake_out_no_pagmo.txt
Created April 30, 2019 09:54
DART cmake regarding pagmo
--
-- ============================================
-- DART 6.8.2
-- ============================================
--
-- [ Mandatory dependencies for DART core ]
-- Looking for eigen3 - version found
-- Looking for libccd - version found
-- Looking for fcl - version found
-- Looking for assimp - version found
@acxz
acxz / Installing-Prebuilt-Binaries.md
Last active May 7, 2019 01:57
A revision to the complx wiki page including instructions for the experimental AUR package

Linux

Ubuntu

We currently only officially provide prebuilt packages for Ubuntu 16.04 and 18.04 and it can be installed with the following commands:

sudo add-apt-repository ppa:tricksterguy87/ppa-gt-cs2110
sudo apt update
sudo apt install complx-tools

Arch Linux (Experimental)

@acxz
acxz / dart_make_out_with_pagmoBuiltWithNoEigen.txt
Created May 7, 2019 03:38
Make process of DART with the optional pagmo dependency built without Eigen support.
Scanning dependencies of target dart-external-imgui
Scanning dependencies of target dart-external-lodepng
Scanning dependencies of target dart-external-odelcpsolver
[ 0%] Building CXX object dart/external/imgui/CMakeFiles/dart-external-imgui.dir/imgui.cpp.o
[ 0%] Building CXX object dart/external/imgui/CMakeFiles/dart-external-imgui.dir/imgui_draw.cpp.o
[ 0%] Building CXX object dart/external/odelcpsolver/CMakeFiles/dart-external-odelcpsolver.dir/error.cpp.o
[ 0%] Building CXX object dart/external/lodepng/CMakeFiles/dart-external-lodepng.dir/lodepng.cpp.o
[ 1%] Building CXX object dart/external/odelcpsolver/CMakeFiles/dart-external-odelcpsolver.dir/fastdot.cpp.o
[ 1%] Building CXX object dart/external/odelcpsolver/CMakeFiles/dart-external-odelcpsolver.dir/fastldlt.cpp.o
[ 1%] Building CXX object dart/external/odelcpsolver/CMakeFiles/dart-external-odelcpsolver.dir/fastlsolve.cpp.o
@acxz
acxz / darknet_error.log
Created June 13, 2019 23:59
Error log of building darknet
[ 49%] Linking CXX executable uselib_track
/usr/bin/ld: warning: libvtkInteractionStyle.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkFiltersExtraction.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkRenderingLOD.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOPLY.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkFiltersTexture.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOExport.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkRenderingGL2PSOpenGL2.so.1, needed by /usr/lib/libopencv_viz.so.4.1.0, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOGeom
@acxz
acxz / make_out_acapp.txt
Created June 16, 2019 15:57
Make Output of AcApp
gcc -Wall -Wshadow -Wno-deprecated -g -I ./Kit//include/GL/ -I ./Include/ -I ./Kit/Include/ -I ./Kit/Source/ -O0 -D _USE_GUI_ -D _USE_SHADERS_ -D _USE_SYSTEM_TIME_ -D _ENABLE_SOCKETS_ -D _USE_GSFC_WATERMARK_ -c ./Source/AcApp.c -o ./Object/AcApp.o
gcc -Wall -Wshadow -Wno-deprecated -g -I ./Kit//include/GL/ -I ./Include/ -I ./Kit/Include/ -I ./Kit/Source/ -O0 -D _USE_GUI_ -D _USE_SHADERS_ -D _USE_SYSTEM_TIME_ -D _ENABLE_SOCKETS_ -D _USE_GSFC_WATERMARK_ -c ./Kit/Source/dcmkit.c -o ./Object/dcmkit.o
gcc -Wall -Wshadow -Wno-deprecated -g -I ./Kit//include/GL/ -I ./Include/ -I ./Kit/Include/ -I ./Kit/Source/ -O0 -D _USE_GUI_ -D _USE_SHADERS_ -D _USE_SYSTEM_TIME_ -D _ENABLE_SOCKETS_ -D _USE_GSFC_WATERMARK_ -c ./Kit/Source/mathkit.c -o ./Object/mathkit.o
gcc -Wall -Wshadow -Wno-deprecated -g -I ./Kit//include/GL/ -I ./Include/ -I ./Kit/Include/ -I ./Kit/Source/ -O0 -D _USE_GUI_ -D _USE_SHADERS_ -D _USE_SYSTEM_TIME_ -D _ENABLE_SOCKETS_ -D _USE_GSFC_WATERMARK_ -c ./Kit/Sourc
@acxz
acxz / cmake.txt
Created October 18, 2019 07:41
Build Output for ign-cmake {failing under default build process]
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 1] scotch-6.0.9-1
1 scotch (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> :: Deleting (1/1): /home/acxz/.cache/yay/scotch
:: Downloaded PKGBUILD (1/1): scotch
1 scotch (Build Files Exist)
[ 1%] Generating API documentation with Doxygen
warning: Tag 'PERL_PATH' at line 2117 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api_tagfile.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2139 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api_tagfile.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'PERL_PATH' at line 2117 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-11bba67b3176/build/api.dox' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag 'MSCGEN_PATH' at line 2139 of file '/home/acxz/vcs/git/aur/ignition-math/src/ignitionrobotics-ign-math-1
Increasing per-process limit of core file size to infinity.
- Existing per-process limit (soft=18446744073709551615, hard=18446744073709551615) is enough for us (need only 18446744073709551615)
LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
LogInit: Display: Running engine without a game
LogPlatformFile: Not using cached read wrapper
LogTaskGraph: Started task graph with 5 named threads and 8 total threads with 3 sets of task threads.
LogStats: Stats thread started at 0.042843
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: -5:00, Platform Override: ''
LogUnixPlatformFile: Warning: create dir('/opt/unreal-engine/Engine/Saved/Config/Linux/Manifest.ini') failed: errno=13 (Permission denied)
LogUnixPlatformFile: Warning: create dir('/opt/unreal-engine/Engine/Saved/Config/Linux/Manifest.ini') failed: errno=13 (Permission denied)
@acxz
acxz / pid.py
Created February 23, 2020 22:45
class pidController:
def __init__(self, kp, ki, kd, max_integral_error, error_margin):
self.kp = kp
self.ki = ki
self.kd = kd
self.max_integral_error = max_integral_error
self.error_margin = error_margin
self.total_error = 0