fix error

This commit is contained in:
IDONTSUDO 2024-08-21 16:57:28 +03:00
parent e748debd2f
commit 1287625107
3 changed files with 6 additions and 10 deletions

View file

@ -24,7 +24,7 @@ export class ExecInstanceScenario extends CallbackStrategyWithIdQuery {
console.log(JSON.stringify(document)), console.log(JSON.stringify(document)),
new ExecProcessUseCase().call( new ExecProcessUseCase().call(
document.instancePath, document.instancePath,
`python3 $GET_INTERFACES --path ${document.instancePath} --package ${JSON.stringify(document)}`, `python3 $GET_INTERFACES --path ${document.instancePath} --package '${JSON.stringify(document)}'`,
"", "",
new ExecInstanceTwinsProcessService(document.instancePath, document) new ExecInstanceTwinsProcessService(document.instancePath, document)
) )

View file

@ -210,10 +210,7 @@ export const defaultFormValue: any = {
generation: { n_cam_pose: 5, n_sample_on_pose: 3, n_series: 100, image_format: "JPEG", image_size_wh: [640, 480] }, generation: { n_cam_pose: 5, n_sample_on_pose: 3, n_series: 100, image_format: "JPEG", image_size_wh: [640, 480] },
}; };
// `{ `{
// "camera_name": \${CAMERA_NAME:string: }, "robot_name": \${CAMERA_NAME:string: },
// "camera_namespace": \${CAMERA_NAMESPACE:string: }, "dof": \${CAMERA_NAMESPACE:number: }
// "staticProp":{ }`;
// "e23e":""
// }
// }`;

View file

@ -106,9 +106,8 @@ export const DigitalTwinsScreen = observer(() => {
<CoreInput onChange={(text) => store.updateForm({ description: text })} label={"Описание"} /> <CoreInput onChange={(text) => store.updateForm({ description: text })} label={"Описание"} />
<CoreInput onChange={(text) => store.updateForm({ command: text })} label={"Команда"} /> <CoreInput onChange={(text) => store.updateForm({ command: text })} label={"Команда"} />
<CoreInput onChange={(text) => store.updateForm({ interfaces: { cmd: text } })} label={"Cmd"} /> <CoreInput onChange={(text) => store.updateForm({ interfaces: { cmd: text } })} label={"Cmd"} />
<CoreInput onChange={(text) => store.updateForm({ executable: text })} label={"executable"} />
<CoreInput onChange={(text) => store.updateForm({ package: text })} label={"package"} /> <CoreInput onChange={(text) => store.updateForm({ package: text })} label={"package"} />
<CoreInput onChange={(text) => store.updateForm({ executable: text })} label={"executable"} />
<CoreInput <CoreInput
label="FormBuilder Result" label="FormBuilder Result"
onChange={(text) => (store.viewModel.formBuilder.result = text)} onChange={(text) => (store.viewModel.formBuilder.result = text)}