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 cv2 | |
import os | |
import glob | |
# | |
image_folder = './Saved' | |
video_name = 'video.avi' | |
fourcc = cv2.VideoWriter_fourcc(*'MP4V') | |
images = [] | |
for img in sorted(glob.glob(os.path.join(image_folder, "*"))): |
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 ros:melodic-ros-core-bionic | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
build-essential \ | |
python3 python3-dev python3-pip \ | |
cmake \ | |
git \ | |
ca-certificates \ |
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
""" | |
Just A simple example of the Kalman Filter for State Estimation. | |
Predict: | |
x_i = a * x_{i-1} | |
p_i = a * p_{i-1} * a | |
Update: |
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
/* | |
A call back function for retriving ROS Transformation. The code hasn't been tested yet. | |
*/ | |
template <typename T> | |
void DynamicMotionPrimitives<T>::tfCallback(const tf2_msgs::TFMessage::Ptr & msg) | |
{ | |
//geometry_msgs::TransformStamped world_to_uav; | |
bool found_transform = false; |
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
""" | |
A simple quadrotor simulatior. The code should self-explanatory. | |
Reference: Quadcopter Dynamics, Simulation, and Control. by Andrew Gibiansky. | |
Download: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/http://andrew.gibiansky.com/downloads/pdf/Quadcopter%20Dynamics,%20Simulation,%20and%20Control.pdf | |
""" | |