UNPKG

@wandelbots/nova-js

Version:

Official JS client for the Wandelbots API

26 lines 1.25 kB
import type { Pose } from "@wandelbots/nova-api/v1"; /** Try to parse something as JSON; return undefined if we can't */ export declare function tryParseJson(json: unknown): any; /** Try to turn something into JSON; return undefined if we can't */ export declare function tryStringifyJson(json: unknown): string | undefined; /** * Converts object parameters to query string. * e.g. { a: "1", b: "2" } => "?a=1&b=2" * {} => "" */ export declare function makeUrlQueryString(obj: Record<string, string>): string; /** Convert radians to degrees */ export declare function radiansToDegrees(radians: number): number; /** Convert degrees to radians */ export declare function degreesToRadians(degrees: number): number; /** * Convert a Pose object representing a motion group position * into a string which represents that pose in Wandelscript. */ export declare function poseToWandelscriptString(pose: Pick<Pose, "position" | "orientation">): string; /** * Check for coordinate system id equivalence, accounting for the "world" default * on empty/undefined values. */ export declare function isSameCoordinateSystem(firstCoordSystem: string | undefined, secondCoordSystem: string | undefined): boolean; //# sourceMappingURL=converters.d.ts.map