Skip to content

Instantly share code, notes, and snippets.

View vfdev-5's full-sized avatar
:octocat:
.\ |

vfdev vfdev-5

:octocat:
.\ |
View GitHub Profile
@vfdev-5
vfdev-5 / test_tiler.py
Created May 10, 2016 21:57
Image tiler
#!/bin/python2
import numpy as np
from tiler import ImageTiler
w = 7
h = 9
data = np.arange(0, w*h).reshape((h, w))
print data
project(FalseParallelSharing)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
@vfdev-5
vfdev-5 / gen_points.py
Last active June 30, 2016 17:40
Simple logistic regression classifier using CAFFE
#!/bin/python2
# Python
# Numpy
import numpy as np
# Matplotlib
import matplotlib.pyplot as plt

HOW TO INSTALL pjreddie/DARKNET ON OSX

Install Opencv

  • use brew
brew install opencv
  • setup opencv.pc to pkgconfig, e.g :
@vfdev-5
vfdev-5 / example.py
Last active August 31, 2016 11:48
Exchanges
import numpy as np
import cv2
from validation import _blackboxed_image_iterator
image = 175.0 * np.ones((110, 105, 3), dtype=np.uint8)
@vfdev-5
vfdev-5 / README.md
Created September 13, 2016 09:24
Install DIGITS on windows

Install NVIDIA Digits on Windows

  • Follow instructions from here :
  • Setup environment variables :
    • set CAFFE_ROOT=C:\path\to\caffe
    • set PATH=%PATH%;C:\Python27;C:\Python27\Scripts;%CAFFE_ROOT%\Build\x64\Release
    • set PYTHONPATH=%PYTHONPATH%;%CAFFE_ROOT%\Build\x64\Release\pycaffe
@vfdev-5
vfdev-5 / example.launch
Created September 22, 2016 12:04
ROS viso2 mono odometry test
<launch>
<!-- Arguments -->
<arg name="bagfile" default="/home/osboxes/Downloads/only_rgb.bag"/> <!-- Find it on http://srv.uib.es/public/viso2_ros/sample_bagfiles/ -->
<param name="/use_sim_time" value="true"/>
<!-- Play the bagfile -->
<node pkg="rosbag" type="play" name="rosbag" args="--clock $(arg bagfile)" />
<!-- Run the stereo image proc -->
@vfdev-5
vfdev-5 / Create_a_hotspot.md
Last active January 15, 2021 15:52
Raspberry Pi - Ubuntu 16.04 Mate - Wifi automatic connection and static IP in terminal
sudo nmcli dev wifi hotspot ifname wlan0 con-name "my-hotspot" ssid "my-hotspot" password "My HotsPoT Strong Password"

More info here

@vfdev-5
vfdev-5 / INSTALL.md
Last active May 20, 2023 13:15
Jackal simulation in ROS kinetic

Install dependencies :

This is manual way to install necessary packages :

sudo apt-get install ros-kinetic-robot-localization ros-kinetic-controller-manager ros-kinetic-joint-state-controller ros-kinetic-diff-drive-controller ros-kinetic-gazebo-ros ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-plugins             ros-kinetic-lms1xx ros-kinetic-pointgrey-camera-description ros-kinetic-roslint ros-kinetic-amcl ros-kinetic-gmapping      ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-urdf ros-kinetic-xacro ros-kinetic-message-runtime ros-kinetic-topic-tools ros-kinetic-teleop-twist-joy

If you want to use rosdep and install all dependencies (for example for doc generation etc), the skip this step.

Create a workspace and clone sources

@vfdev-5
vfdev-5 / install_rpi_ros_packages.bash
Last active October 14, 2016 17:06
RPi ROS packages for Futurakart
#!/usr/bin/env bash
echo "--------------------------------------------------"
echo " Script to install necessary ROS packages on the RPi"
echo " with a clean Ubuntu 16.04"
echo " Usage : bash install_ros_packages.bash [init|fk_deps|rtabmap|rtabmap_ros] "
echo "--------------------------------------------------"