[Blender] Импорт фрейма (объекта локальных осей) в качестве локальной матрицы #38

Closed
opened 2023-02-23 19:36:42 +03:00 by brothermechanic · 9 comments
brothermechanic commented 2023-02-23 19:36:42 +03:00 (Migrated from gitlab.com)
  • импорт локальных координат
  • импорт точки захвата
  • импорт точек шарнира
- [x] импорт локальных координат - [ ] импорт точки захвата - [ ] импорт точек шарнира
brothermechanic commented 2023-02-23 19:36:47 +03:00 (Migrated from gitlab.com)

assigned to @brothermechanic

assigned to @brothermechanic
brothermechanic commented 2023-03-15 10:34:07 +03:00 (Migrated from gitlab.com)

marked the checklist item импорт локальных координат as completed

marked the checklist item **импорт локальных координат** as completed
brothermechanic commented 2023-03-15 10:41:38 +03:00 (Migrated from gitlab.com)

Снипет для импорта локальных координат

import bpy
import json

path_json = '/home/bm/!export/3.json'
with open(path_json) as f:
    data = json.load(f)
    
pivot_name = data['label']
pivot_pose = data['placement']
loc = tuple(pivot_pose['position'].values())
fori = tuple(pivot_pose['orientation'].values())
bori = (fori[3],)+fori[:3]

bpy.ops.object.empty_add(type='ARROWS', radius=0.01, align='WORLD', location=(0, 0, 0), rotation=(0, 0, 0))

pivot_obj = bpy.context.active_object  # or bpy.context.object
pivot_obj.name = pivot_name
pivot_obj.rotation_mode = 'QUATERNION'
pivot_obj.location = loc
pivot_obj.rotation_quaternion = bori
Снипет для импорта локальных координат ```python import bpy import json path_json = '/home/bm/!export/3.json' with open(path_json) as f: data = json.load(f) pivot_name = data['label'] pivot_pose = data['placement'] loc = tuple(pivot_pose['position'].values()) fori = tuple(pivot_pose['orientation'].values()) bori = (fori[3],)+fori[:3] bpy.ops.object.empty_add(type='ARROWS', radius=0.01, align='WORLD', location=(0, 0, 0), rotation=(0, 0, 0)) pivot_obj = bpy.context.active_object # or bpy.context.object pivot_obj.name = pivot_name pivot_obj.rotation_mode = 'QUATERNION' pivot_obj.location = loc pivot_obj.rotation_quaternion = bori ```
brothermechanic commented 2023-03-15 10:42:20 +03:00 (Migrated from gitlab.com)

эти 2 пункта зависят от задачи

  • импорт точки захвата
  • импорт точек шарнира

зависят от задачи
https://gitlab.com/robossembler/framework/-/issues/36

эти 2 пункта зависят от задачи - импорт точки захвата - импорт точек шарнира зависят от задачи https://gitlab.com/robossembler/framework/-/issues/36
brothermechanic commented 2023-03-27 08:37:51 +03:00 (Migrated from gitlab.com)

Вопрос в нужности пунктов задачи, так как разметка теперь будет в блендере

Вопрос в нужности пунктов задачи, так как разметка теперь будет в блендере
brothermechanic commented 2023-03-28 18:57:06 +03:00 (Migrated from gitlab.com)

Точки опоры, точки захвата, точеки шарнира будем различать уже в блендере

Точки опоры, точки захвата, точеки шарнира будем различать уже в блендере
brothermechanic commented 2023-03-28 18:58:15 +03:00 (Migrated from gitlab.com)

created branch 38-import_asm4_points_blender to address this issue

created branch [`38-import_asm4_points_blender`](/robossembler/framework/-/compare/master...38-import_asm4_points_blender) to address this issue
brothermechanic commented 2023-03-28 18:58:28 +03:00 (Migrated from gitlab.com)

mentioned in merge request !25

mentioned in merge request !25
movefasta (Migrated from gitlab.com) closed this issue 2023-04-05 14:26:12 +03:00
brothermechanic commented 2023-06-17 08:46:51 +03:00 (Migrated from gitlab.com)

mentioned in issue #85

mentioned in issue #85
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: robossembler/framework#38
No description provided.