This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Control of a quadcopter using pure casadi (version 2.4.0). | |
import casadi | |
import casadi.tools as ctools | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# Define model and get simulator. | |
Delta = .10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import expanduser | |
home = expanduser("~") | |
import sys | |
sys.path.append(home+"/fun/casadi/casadi-2.4.1/") | |
# | |
# This file is part of CasADi. | |
# | |
# CasADi -- A symbolic framework for dynamic optimization. | |
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, | |
# K.U. Leuven. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import expanduser | |
home = expanduser("~") | |
import sys | |
sys.path.append(home+"/fun/casadi/casadi-2.4.1/") | |
# | |
# This file is part of CasADi. | |
# | |
# CasADi -- A symbolic framework for dynamic optimization. | |
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, | |
# K.U. Leuven. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file is part of CasADi. | |
# | |
# CasADi -- A symbolic framework for dynamic optimization. | |
# Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, | |
# K.U. Leuven. All rights reserved. | |
# Copyright (C) 2011-2014 Greg Horn | |
# | |
# CasADi is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file can be found in http://bricxcc.sourceforge.net/nbc/doc/nxtlinux.txt | |
For ubuntu and other recent linux distributions here is a new procedure that I recommend using to configure your Linux box for use with the NXT: | |
1. Add a legonxt group. From a terminal prompt type | |
sudo addgroup legonxt | |
2. Add your account to the legonxt group. From a terminal prompt type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup nxtOSEK program upload software with enhanced firmware (based on http://lejos-osek.sourceforge.net/installation_linux.htm) | |
a.NeXTTool (building from source) | |
Required Packages: libusb-0.1-4 libusb-dev fpc | |
~$ sudo apt-get install libusb-dev libusb-0.1-4 subversion fpc | |
Note: fpc is the free pascal compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import navio.util | |
import navio.ublox | |
import spidev | |
import time | |
import argparse | |
import sys | |
import struct | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source /opt/ros/kinetic/setup.bash | |
mkdir -p ~/husky_kinetic_ws/src | |
cd ~/husky_kinetic_ws/src | |
git clone -b kinetic-devel https://github.com/husky/husky.git | |
cd ~/husky_kinetic_ws/ | |
catkin_make | |
source devel/setup.bash | |
roslaunch husky_gazebo husky_empty_world.launch |
OlderNewer