Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

urdf-loader

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

urdf-loader - npm Package Compare versions

Comparing version 0.9.5 to 0.10.0

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

## Unreleased
### Fixed
- `URDFJoint.axis` not correctly defaulting to `1, 0, 0`.
### Changed
- Added `"type": "module"` to the package.json and made the main entry file point to the es6 module.
- Export URDF Class types as `interafaces` rather than `classes`.
## [0.9.5] - 2021-01-26

@@ -9,0 +17,0 @@ ### Added

6

package.json
{
"name": "urdf-loader",
"version": "0.9.5",
"version": "0.10.0",
"description": "URDF Loader for THREE.js and webcomponent viewer",
"main": "umd/URDFLoader.js",
"module": "src/URDFLoader.js",
"main": "src/URDFLoader.js",
"type": "module",
"scripts": {

@@ -8,0 +8,0 @@ "start": "concurrently --kill-others \"rollup -c -w\" \"cd .. && static-server\"",

import { Object3D, Vector3 } from 'three';
export class URDFCollider extends Object3D {
export interface URDFCollider extends Object3D {

@@ -10,3 +10,3 @@ isURDFCollider: true;

export class URDFVisual extends Object3D {
export interface URDFVisual extends Object3D {

@@ -18,3 +18,3 @@ isURDFVisual: true;

export class URDFLink extends Object3D {
export interface URDFLink extends Object3D {

@@ -26,3 +26,3 @@ isURDFLink: true;

export class URDFJoint extends Object3D {
export interface URDFJoint extends Object3D {

@@ -32,3 +32,3 @@ isURDFJoint: true;

urdfNode: Element | null;
axis: Vector3 | null;
axis: Vector3;
jointType: 'fixed' | 'continuous' | 'revolute' | 'planar' | 'prismatic' | 'floating';

@@ -45,3 +45,3 @@ angle: Number;

export class URDFMimicJoint extends URDFJoint {
export interface URDFMimicJoint extends URDFJoint {

@@ -54,3 +54,3 @@ mimicJoint : String;

export class URDFRobot extends URDFLink {
export interface URDFRobot extends URDFLink {

@@ -57,0 +57,0 @@ isURDFRobot: true;

@@ -1,2 +0,2 @@

import { Object3D } from 'three';
import { Object3D, Vector3 } from 'three';

@@ -114,3 +114,3 @@ class URDFBase extends Object3D {

this.jointType = 'fixed';
this.axis = null;
this.axis = new Vector3(1, 0, 0);
this.limit = { lower: 0, upper: 0 };

@@ -132,3 +132,3 @@ this.ignoreLimits = false;

this.jointType = source.jointType;
this.axis = source.axis ? source.axis.clone() : null;
this.axis = source.axis.clone();
this.limit.lower = source.limit.lower;

@@ -135,0 +135,0 @@ this.limit.upper = source.limit.upper;

@@ -118,3 +118,3 @@ (function (global, factory) {

this.jointType = 'fixed';
this.axis = null;
this.axis = new THREE.Vector3(1, 0, 0);
this.limit = { lower: 0, upper: 0 };

@@ -136,3 +136,3 @@ this.ignoreLimits = false;

this.jointType = source.jointType;
this.axis = source.axis ? source.axis.clone() : null;
this.axis = source.axis.clone();
this.limit.lower = source.limit.lower;

@@ -139,0 +139,0 @@ this.limit.upper = source.limit.upper;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc