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 z3 | |
def sym_xoroshiro128plus(solver, sym_s0, sym_s1, mask, result): | |
s0 = sym_s0 | |
s1 = sym_s1 | |
sym_r = (sym_s0 + sym_s1) | |
condition = z3.Bool('c0x%0.16x' % result) | |
solver.add(z3.Implies(condition, (sym_r & mask) == result & mask)) |
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
#!/usr/bin/env python | |
import rospy | |
from sensor_msgs.msg import LaserScan | |
rospy.init_node('laser_scan_publisher') | |
scan_pub = rospy.Publisher('scan', LaserScan, queue_size=50) | |
num_readings = 100 |
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
#!/usr/bin/env python | |
import math | |
from math import sin, cos, pi | |
import rospy | |
import tf | |
from nav_msgs.msg import Odometry | |
from geometry_msgs.msg import Point, Pose, Quaternion, Twist, Vector3 |
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
#!/usr/bin/env python | |
# Simple example of Wiener deconvolution in Python. | |
# We use a fixed SNR across all frequencies in this example. | |
# | |
# Written 2015 by Dan Stowell. Public domain. | |
import numpy as np | |
from numpy.fft import fft, ifft, ifftshift |