Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This library is written independent of any specific IMU. The idea is you pass in the appropriate measurements and error terms from your IMU and get the desired output.
This is still under heavy development
wgs = WGS84()
# here are a bunch of useful constants in WGS84 class
wgs.rf = 298.257223563
wgs.f = 1/self.rf
wgs.a = 6378137.0
wgs.b = self.a - self.a * self.f
wgs.e = np.sqrt(1 - (self.b ** 2 / self.a ** 2))
wgs.r = (2*self.a + self.b) / 3
wgs.rotation_period = 23*3600 + 56*60 + 4.09053
wgs.rate = 7.2921157e-5 # Rotation rate of Earth [rad/s]
wgs.sf = 1.2383e-3 # Schuller frequency
# translate ecef(x,y,z) <=> llh(lat,lon,alt)
wgs.ecef2llh(loc)
wgs.llh2ecef(loc)
wgs.gravity(lat) # gravity changes by latitude[deg]
wgs.radius(lat) # Earth's radius changes by latitude[deg]
wgs.haversine(a,b) # calculates distance between locations a and b
While ECEF can be used to navigate the globe, often, you only need to travel 100's of meters or kilometers. Thus a local navigational frame that is tangental to the curvature of the Earth is more useful (and intuitive). Two common ones are:
ref = (40,-90,100) # origin of local frame (lat[deg], lon[deg], altitude[m])
frame = NavigationalFrame(ref)
# allof these will calculate position relative to your local
# frame origin
loc = [x,y,z]
frame.ecef2ned(loc)
frame.ecef2enu(loc)
frame.ned2ecef(loc)
frame.enu2ecef(loc)
frame.enu2ned(loc)
frame.ned2enu(loc)
-45 deg 12' 36.0 sec
, 45.21 W
, and -45.21
easilyCopyright (c) 2016 Kevin J. Walchko
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A library to do inertial navigation
We found that ins-nav demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.