27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
use_namespace(rosettacode)_me();
|
|
|
|
// Real world collections
|
|
with_route(wp1-wp2)_scalar(wp1wp2Distance)_distan({m},32); // simple distance scalar
|
|
|
|
// Three dimensional vector (displacement - orientation (via quaternion) - energy consumption)
|
|
with_route(from-wp1-to-wp2)_vector(wp1Towp2Displacement)_distan({m},32)_orientatout(0.98,0.174i,0.044j,0.087k)_ergconsump({kJ},35.483);
|
|
|
|
with_robot(alif)_sensor(frontCamera)_type(camera_3d);
|
|
with_robot(alif)_abilit(frontalVision)_of[frontCamera]; // ability (1-dimensional)
|
|
with_robot(alif)_sensor(rearCamera)_type(camera_3d);
|
|
with_robot(alif)_spec(vision)_of([frontCamera],[rearCamera]); // specification (2-dimensional)
|
|
|
|
// Inventory of wheels of robot 'alif'
|
|
with_robot(alif)_invent(wheels)_compon(frontLeftWheel, frontRightWheel, rearLeftWheel, rearRightWheel)_type(wheel);
|
|
|
|
// Non-fungible token (blockchained) of robot photo (default ledger)
|
|
with_robot(beh)_camera(frontCamera)_snap(74827222-32232-22)
|
|
add_nft()_[]_chain(block);
|
|
;
|
|
|
|
// Non-fungible token (crosschained) of robot photo (default ledger)
|
|
with_robot(beh)_camera(frontCamera)_snap(74827222-32232-42)
|
|
add_nft()_[]_chain(cross);
|
|
;
|
|
|
|
reset_ns[];
|