HOW TO INSTALL pjreddie/DARKNET ON OSX
- use brew
brew install opencv
- setup opencv.pc to pkgconfig, e.g :
#!/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}) |
#!/bin/python2 | |
# Python | |
# Numpy | |
import numpy as np | |
# Matplotlib | |
import matplotlib.pyplot as plt |
brew install opencv
import numpy as np | |
import cv2 | |
from validation import _blackboxed_image_iterator | |
image = 175.0 * np.ones((110, 105, 3), dtype=np.uint8) |
<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 --> |
sudo nmcli dev wifi hotspot ifname wlan0 con-name "my-hotspot" ssid "my-hotspot" password "My HotsPoT Strong Password"
More info here
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.
#!/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 "--------------------------------------------------" | |