This file contains hidden or 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
# Copyright (C) 2019 Rafael Papallas | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or 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
weather() { | |
curl wttr.in | |
} |
This file contains hidden or 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
# Requires pyquaternion -- pip install --user pyquaternion | |
from pyquaternion import Quaternion | |
import math | |
def apply_rotation(q1, axis, angle): | |
q2 = Quaternion(axis=axis, angle=angle) | |
result = q1 * q2 | |
return result.elements | |
q1 = Quaternion(1, 0, 0, 0) |
This file contains hidden or 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
# Copyright (C) 2018 The University of Leeds, School of Computing | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or 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
// Input: | |
// path: ompl::control::PathControl | |
// penv: OpenRAVE::EnvironmentBasePtr | |
// robot: OpenRAVE::RobotBasePtr | |
// | |
// Output: Will create an OpenRAVE trajectory from the OMPL PathControl and will also parse deltatimes. | |
TrajectoryBasePtr or_traj = RaveCreateTrajectory(penv, ""); | |
auto configuration_specification = robot->GetActiveConfigurationSpecification(); | |
configuration_specification.AddDeltaTimeGroup(); |
This file contains hidden or 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 program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
This file contains hidden or 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
Rz(θ) = | |
[ cos θ -sin θ 0 ] | |
[ sin θ cos θ 0 ] | |
[ 0 0 1 ] | |
Ry(θ) = | |
[ cos θ 0 sin θ ] | |
[ 0 1 0 ] | |
[ -sin θ 0 cos θ ] |
This file contains hidden or 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 program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
This file contains hidden or 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
def get_xml(arr): | |
rotation = "<RotationMat>" | |
for row in range(0, 3): | |
for col in range(0, 3): | |
rotation += str(arr[row, col]) | |
if row != 2 or col != 2: rotation += " " | |
rotation += "</RotationMat>" | |
translation = "<Translation>" | |
for row in range(0, 3): |
This file contains hidden or 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
\usepackage[numbers]{natbib} | |
\usepackage{cleveref} | |
\usepackage{hyperref} | |
\begin{document} | |
Some cite \cite{somepaper} and then with author et al \citet{somepaper}. | |
\bibliographystyle{unsrtnat} | |
\bibliography{refs} | |
\end{document} |