Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cesium-frame
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jlc
cesium-frame
Commits
148d4b74
Commit
148d4b74
authored
Aug 05, 2024
by
jlc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:机械臂和实时驱动案例的修改
parent
fe7e0488
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
26 deletions
+50
-26
RealTimeDriver.png
src/assets/RealTimeDriver.png
+0
-0
RobotArmAnimation.png
src/assets/RobotArmAnimation.png
+0
-0
robotArmAnimation-function.js
...ingTarget/robotArmAnimation/robotArmAnimation-function.js
+49
-25
ElementMap.js
src/views/ElementMap.js
+1
-1
No files found.
src/assets/RealTimeDriver.png
0 → 100644
View file @
148d4b74
163 KB
src/assets/RobotArmAnimation.png
View replaced file @
fe7e0488
View file @
148d4b74
197 KB
|
W:
|
H:
812 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/examples/movingTarget/robotArmAnimation/robotArmAnimation-function.js
View file @
148d4b74
...
...
@@ -2,44 +2,68 @@ export function addRobotArmAnimation(viewer) {
const
czml
=
[
{
id
:
"document"
,
name
:
"robotArm
"
,
name
:
"CZML Model
"
,
version
:
"1.0"
,
clock
:
{
interval
:
"2019-08-28T04:00:00Z/2019-08-28T04:20:00Z"
,
currentTime
:
"2019-08-28T04:00:00.00Z"
,
multiplier
:
1
,
range
:
"LOOP_STOP"
,
step
:
"SYSTEM_CLOCK_MULTIPLIER"
}
interval
:
"2015-01-01T00:00:00Z/2015-01-01T00:00:20Z"
,
currentTime
:
"2015-01-01T00:00:00Z"
,
multiplier
:
20
,
},
},
{
id
:
"robotArm"
,
name
:
"robotArmAnimation"
,
description
:
"<p>this is a ship</p>"
,
availability
:
"2019-08-28T04:00:00Z/2019-08-28T04:20:00Z"
,
id
:
"model"
,
position
:
{
cartographicDegrees
:
[
120
,
30
,
0
]
cartographicDegrees
:
[
120
,
30
,
100000
],
},
viewFrom
:
{
cartesian
:
[
4.3
,
0.1
,
2.6
],
},
model
:
{
show
:
true
,
gltf
:
[
{
interval
:
"2019-08-28T04:00:00Z/9999-12-31T23:59:59.9999999Z"
,
uri
:
'https://raw.githubusercontent.com/jinlinchao123/Cesium-assets/main/3Dmodel/Station.glb'
}
gltf
:
"https://raw.githubusercontent.com/jinlinchao123/Cesium-assets/main/3Dmodel/Cesium_Man.glb"
,
runAnimations
:
false
,
nodeTransformations
:
{
Skeleton_arm_joint_L__3_
:
{
rotation
:
{
epoch
:
"2015-01-01T00:00:00Z"
,
unitQuaternion
:
[
0
,
-
0.23381920887303329
,
-
0.6909886782144156
,
-
0.0938384854833712
,
0.6775378681547408
,
10
,
-
0.4924076887347565
,
-
0.6304934596091216
,
0.20657864059632378
,
0.563327551886459
,
20
,
-
0.23381920887303329
,
-
0.6909886782144156
,
-
0.0938384854833712
,
0.6775378681547408
,
],
},
},
Skeleton_arm_joint_R__2_
:
{
rotation
:
{
unitQuaternion
:
[
-
0.2840422631464792
,
-
0.40211904424847345
,
0.25175867757399086
,
0.7063888981321548
,
],
minimumPixelSize
:
128
,
scale
:
1
,
runAnimations
:
true
}
}
,
}
,
},
},
},
];
var
dataSourcePromise
=
viewer
.
dataSources
.
add
(
Cesium
.
CzmlDataSource
.
load
(
czml
));
dataSourcePromise
.
then
(
function
(
dataSource
)
{
dataSourcePromise
.
then
(
function
(
dataSource
)
{
// 根据模型所在的实体去进行加载
viewer
.
trackedEntity
=
dataSource
.
entities
.
getById
(
'
robotArm
'
);
}).
catch
(
function
(
error
)
{
viewer
.
trackedEntity
=
dataSource
.
entities
.
getById
(
'
model
'
);
}).
catch
(
function
(
error
)
{
console
.
error
(
error
);
});
}
src/views/ElementMap.js
View file @
148d4b74
...
...
@@ -42,7 +42,7 @@ export const elementMovingMap = {
},
实时驱动
:
{
title
:
'实时驱动'
,
pngUrl
:
'/src/assets/R
obotArmAnimation
.png'
pngUrl
:
'/src/assets/R
ealTimeDriver
.png'
},
坐标轴
:
{
title
:
'坐标轴'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment