git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
// Bresenham3D | |
// | |
// A slightly modified version of the source found at | |
// http://www.ict.griffith.edu.au/anthony/info/graphics/bresenham.procs | |
// Provided by Anthony Thyssen, though he does not take credit for the original implementation | |
// | |
// It is highly likely that the original Author was Bob Pendelton, as referenced here | |
// | |
// ftp://ftp.isc.org/pub/usenet/comp.sources.unix/volume26/line3d | |
// |
#!/usr/bin/env python | |
# Python 2 and 3 compatible. | |
#This script takes in a PDF and creates two new PDFs. One has the black and | |
#white pages and the other has the colour pages. It also takes duplex printing | |
#into account. So a black and white side which is on the same sheet as a colour | |
#side will be placed into the colour PDF. | |
#This is from a script created by Iain Murray. The original comment is below. | |
#This version simply has some different defaults and removes the PDFtoPPM. |
To remove a submodule you need to:
#!/usr/bin/python | |
#-*- coding: latin-1 -*- | |
"""This module contains pure Python implementations of the | |
Levenberg-Marquardt algorithm for data fitting. | |
""" | |
import numpy | |
from numpy import inner, max, diag, eye, Inf, dot | |
from numpy.linalg import norm, solve |
Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
""" | |
A Python implementation of NNLS algorithm | |
References: | |
[1] Lawson, C.L. and R.J. Hanson, Solving Least-Squares Problems, Prentice-Hall, Chapter 23, p. 161, 1974. | |
Contributed by Klaus Schuch (schuch@igi.tugraz.at) | |
based on MATLAB's lsqnonneg function | |
""" |
This was tested on a ThinkPad P70 laptop with an Intel integrated graphics and an NVIDIA GPU:
lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GM204GLM [Quadro M3000M] (rev a1)
A reason to use the integrated graphics for display is if installing the NVIDIA drivers causes the display to stop working properly.
In my case, Ubuntu would get stuck in a login loop after installing the NVIDIA drivers.
This happened regardless if I installed the drivers from the "Additional Drivers" tab in "System Settings" or the ppa:graphics-drivers/ppa
in the command-line.
#include <tf/tf.h> | |
#include <nav_msgs/Odometry.h> | |
#include <geometry_msgs/Pose2D.h> | |
ros::Publisher pub_pose_; | |
void odometryCallback_(const nav_msgs::Odometry::ConstPtr msg) { | |
geometry_msgs::Pose2D pose2d; | |
pose2d.x = msg->pose.pose.position.x; | |
pose2d.y = msg->pose.pose.position.y; |