
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
cartesian-tree
Advanced tools
cartesian-tree is a library for managing and transforming poses in a tree-structured hierarchy of 3D coordinate frames in rust as well as python.
+ x(1.0)) or rotations (* rz(PI/4)).The project can be found on crates.io and pypi.org
Rust:
use cartesian_tree::{Frame, Pose};
use nalgebra::{Vector3, UnitQuaternion};
fn main() {
// Create root frame
let world = Frame::new_origin("world");
// Add a child frame
let child = world.add_child(
"child",
Vector3::new(1.0, 0.0, 0.0),
UnitQuaternion::from_euler_angles(0.0, 0.0, std::f64::consts::FRAC_PI_2),
).unwrap();
// Create a pose in the world frame
let pose = world.add_pose(Vector3::new(0.0, 1.0, 0.0), UnitQuaternion::identity());
// Transform the pose to the child frame
let pose_in_child = pose.in_frame(&child).unwrap();
println!("Pose in child: {:?}", pose_in_base.transformation());
Python:
from cartesian_tree import Frame, Rotation, Vector3
# Create root frame
world = Frame("world")
# Add a child frame
child = world.add_child(
"child",
Vector3(1.0, 0.0, 0.0),
Rotation.identity()
)
# Create a pose in the world frame
pose = world.add_pose(
Vector3(0.0, 1.0, 0.0), Rotation.identity()
)
# Transform the pose to the child frame
pose_in_child = pose.in_frame(child)
print(f"Pose in child: {pose_in_child}")
FAQs
Build hierarchical Cartesian coordinate systems to easily transform poses.
We found that cartesian-tree 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.