1.1.1 • Published 4 years ago

@dorabot/visualization v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

visualization

3D visualization npm module for Dorabot

Install

$ yarn add @dorabot/visualization

or

$ npm install @dorabot/visualization

Import

import initThree from '@dorabot/visualization'

Call Function

initThree(robot_info, robot_collision_info, bin_position, robotData, pointCloud)

Note:

Five parameters needed

robot_info/robot_collision_info =[
    {
        frame_id:'', // mapping robot data child_frame_id('f_link','s_link','l_link',etc)
        filePath:'', // 3D model (.stl file) path
        color:'' // model color(default:0x3155a5)
    }
]
# Information of the elements that needed to be rendered on the scene;
init_position = [{
    size:[2.8, 0.8, 0.01], // size
    color: 0x555555, // color
    pose:[2.42, 0, 1.3], // position
    type:'', // box/conveyor/''
    draggable:false // 'if object can be dragged'
}]
# Robot position and orientation
robotData = [{
    {"child_frame_id":"gp12_rotational_fixed_base_link","frame_id":"world_frame","pose":{"orientation":{"w":1.0,"x":0.0,"y":0.0,"z":0.0},"position":{"x":0.0,"y":0.0,"z":0.0}},"stamp":{"nsec":1570594000635174919}},
}]
# Point cloud data
pointcloud: .pcd ( point cloud data) file path
1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago