Skip to content

Instantly share code, notes, and snippets.

sudo apt-get update sudo apt-get install gawk make git curl cmake wget unzip -y sudo pip instal future sudo apt-get install libxml2-dev libxslt1-dev -y sudo pip2 install pymavlink catkin_pkg --upgrade sudo pip install MAVProxy==1.5.2

wget -c https://sourceforge.net/projects/aruco/files/latest/download?source=files mv aruco-2.0.19.zip* aruco-2.0.19.zip
unzip aruco-2.0.19.zip && cd aruco-2.0.19

[2017.04.17-07.58.11:128][248]BlueprintLog: New page: Pre-Play auto-recompile
[2017.04.17-07.58.11:128][248]LogPlayLevel: [PlayLevel] Compiling LandscapeMap before play...
[2017.04.17-07.58.13:639][248]LogBlueprint:Error: [Compiler PersistentLevel.LandscapeMap] Error Spawn node  SpawnActor NONE  must have a  Class  specified.
[2017.04.17-07.58.13:640][248]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Could not find a variable named "bIsOutOfBounds" in 'LandscapeMap'.
Make sure 'LandscapeMap' has been compiled for  Set bIsOutOfBounds
[2017.04.17-07.58.13:640][248]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins  Return Value  and  Object : This cast has an invalid target type (was the class deleted without a redirect?).
[2017.04.17-07.58.13:640][248]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins  Object  and  Return Value : This cast has an invalid target type (was the class deleted without a redirect?

What NOT TO DO

sudo apt-get install ros-indigo-mavros*
  • If seeing, UniquePtr does not name a type errors, these are NOT c++11 issues!!
    The error is with /opt/ros/indigo/blabla/class_loader.h
    Now, what worked FINALLY was sudo apt-get upgrade
    No need to change cmake versions (thanks to AirSim you were trying to make running a few days back) and what the hell not.
@madratman
madratman / Compiling SiftGPU for Visual SFM for Line3D++.md
Last active April 2, 2017 21:28
Compiling SiftGPU for Visual SFM for Line3D++

Gigabyte p35

Follow this http://www.10flow.com/2012/08/15/building-visualsfm-on-ubuntu-12-04-precise-pangolin-desktop-64-bit/ or https://rasparchaeo.wordpress.com/2015/02/26/install-visualsfm-linux/

Instead of $ sudo apt-get install libgtk2.0-dev libglew1.6-dev libglew1.6 libdevil-dev libboost-all-dev libatlas-cpp-0.6-dev libatlas-dev imagemagick libatlas3gf-base libcminpack-dev libgfortran3 libmetis-edf-dev libparmetis-dev freeglut3-dev libgsl0-dev

Do sudo apt-get install libglew-dev libgtk2.0-dev libdevil-dev libboost-all-dev libatlas-cpp-0.6-dev libatlas-dev imagemagick libatlas3gf-base libcminpack-dev libgfortran3 libmetis-edf-dev libparmetis-dev freeglut3-dev libgsl0-dev

  • For installing Qt, use sudo sudo ./qtblabla.run.

  • for discovering Qt in cmake, set CMAKE_PREFIX_PATH=/opt/Qt/5.8/gcc_64/ or simply $export CMAKE_PREFIX_PATH=/opt/Qt/5.8/gcc_64/

[2017.04.01-23.14.00:638][351]BlueprintLog: New page: Pre-Play auto-recompile
[2017.04.01-23.14.00:638][351]LogPlayLevel: [PlayLevel] Compiling LandscapeMap before play...
[2017.04.01-23.14.00:778][351]LogBlueprint:Error: [Compiler PersistentLevel.LandscapeMap] Error Spawn node  SpawnActor NONE  must have a  Class  specified.
[2017.04.01-23.14.00:778][351]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Could not find a variable named "bIsOutOfBounds" in 'LandscapeMap'.
Make sure 'LandscapeMap' has been compiled for  Set bIsOutOfBounds
[2017.04.01-23.14.00:778][351]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins  Return Value  and  Object : This cast has an invalid target type (was the class deleted without a redirect?).
[2017.04.01-23.14.00:779][351]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins  Object  and  Return Value : This cast has an invalid target type (was the class deleted without a redirect?
[2017.04.01-23.18.12:566][918]BlueprintLog: New page: Pre-Play auto-recompile
[2017.04.01-23.18.12:566][918]LogPlayLevel: [PlayLevel] Compiling LandscapeMap before play...
[2017.04.01-23.18.15:628][918]LogBlueprint:Error: [Compiler PersistentLevel.LandscapeMap] Error Spawn node SpawnActor NONE must have a Class specified.
[2017.04.01-23.18.15:629][918]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Could not find a variable named "bIsOutOfBounds" in 'LandscapeMap'.
Make sure 'LandscapeMap' has been compiled for Set bIsOutOfBounds
[2017.04.01-23.18.15:629][918]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins Return Value and Object : This cast has an invalid target type (was the class deleted without a redirect?).
[2017.04.01-23.18.15:629][918]LogBlueprint:Warning: [Compiler PersistentLevel.LandscapeMap] Warning Can't connect pins Object and Return Value : This cast has an invalid target type (was the class deleted without a redirect?).
[
@madratman
madratman / gist:a6c73dbd0a2301902f63f5035a945c1f
Created March 27, 2017 03:04
from rand import permissions
sudo chgrp -R GROUP_NAME PATH_TO_DIR
sudo chmod -R g+w PATH_TO_DIR #for write permission
@madratman
madratman / params.yaml
Created March 20, 2017 04:27
stereo_params
# Kl = ( Mat_<float>(3,3) << Kl_[0], 0.0, Kl_[2],
# 0.0, Kl_[1], Kl_[3],
# 0.0, 0.0, 1.0 );
cam0:
Kl: [536.1659550000001, 536.538415, 317.456864, 261.798048] #fx, fy, cx, cy
Kr: [535.427087, 535.775524, 314.884298, 261.374341]
cam_bl: 0.17454185842
cam_height: 512
cam_model: Pinhole
cam_width: 640
@madratman
madratman / docker with X transfer.md
Last active April 17, 2017 17:58
docker with X transfer

Add this to dockerfile:

RUN apt-get update RUN apt-get install -qqy x11-apps ENV DISPLAY :0

Authorise current user first in host: xhost +si:localuser:$USER