From 68d06e862f02560507108193df31c755ff2c1275 Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:37:58 -0700 Subject: [PATCH 1/6] Track autogenerated proto files --- exporter/SynthesisFusionAddin/pyproject.toml | 2 + .../src/Parser/SynthesisParser/Components.py | 2 +- .../Parser/SynthesisParser/JointHierarchy.py | 2 +- .../src/Parser/SynthesisParser/Joints.py | 2 +- .../src/Parser/SynthesisParser/Materials.py | 2 +- .../src/Parser/SynthesisParser/Parser.py | 2 +- .../SynthesisParser/PhysicalProperties.py | 2 +- .../src/Parser/SynthesisParser/RigidGroup.py | 2 +- .../src/Proto/assembly_pb2.py | 65 ++++++++++++++++ .../src/Proto/joint_pb2.py | 76 +++++++++++++++++++ .../src/Proto/material_pb2.py | 57 ++++++++++++++ .../src/Proto/motor_pb2.py | 45 +++++++++++ .../SynthesisFusionAddin/src/Proto/readme.md | 1 + .../src/Proto/signal_pb2.py | 47 ++++++++++++ .../src/Proto/types_pb2.py | 59 ++++++++++++++ 15 files changed, 359 insertions(+), 7 deletions(-) create mode 100644 exporter/SynthesisFusionAddin/src/Proto/assembly_pb2.py create mode 100644 exporter/SynthesisFusionAddin/src/Proto/joint_pb2.py create mode 100644 exporter/SynthesisFusionAddin/src/Proto/material_pb2.py create mode 100644 exporter/SynthesisFusionAddin/src/Proto/motor_pb2.py create mode 100644 exporter/SynthesisFusionAddin/src/Proto/readme.md create mode 100644 exporter/SynthesisFusionAddin/src/Proto/signal_pb2.py create mode 100644 exporter/SynthesisFusionAddin/src/Proto/types_pb2.py diff --git a/exporter/SynthesisFusionAddin/pyproject.toml b/exporter/SynthesisFusionAddin/pyproject.toml index 01222be485..92f6c6ec1d 100644 --- a/exporter/SynthesisFusionAddin/pyproject.toml +++ b/exporter/SynthesisFusionAddin/pyproject.toml @@ -13,6 +13,7 @@ skip = [ ".vscode/", "/dist/", "proto/proto_out", + "src/Proto", ] [tool.black] @@ -30,6 +31,7 @@ exclude = ''' | .vscode | dist | proto_out + | src/Proto )/ ) ''' diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Components.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Components.py index aa77cac500..c85a1cc890 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Components.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Components.py @@ -7,7 +7,7 @@ import adsk.core import adsk.fusion -from proto.proto_out import assembly_pb2, joint_pb2, material_pb2, types_pb2 +from src.Proto import assembly_pb2, joint_pb2, material_pb2, types_pb2 from ...Logging import logFailure, timed from ...Types import ExportMode diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/JointHierarchy.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/JointHierarchy.py index 53dd3d10fa..efd06a21f1 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/JointHierarchy.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/JointHierarchy.py @@ -6,7 +6,7 @@ import adsk.core import adsk.fusion -from proto.proto_out import joint_pb2, types_pb2 +from src.Proto import joint_pb2, types_pb2 from ...general_imports import * from ...Logging import getLogger, logFailure diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Joints.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Joints.py index c79a0240d0..8a6a75c04c 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Joints.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Joints.py @@ -29,7 +29,7 @@ import adsk.core import adsk.fusion -from proto.proto_out import assembly_pb2, joint_pb2, motor_pb2, signal_pb2, types_pb2 +from src.Proto import assembly_pb2, joint_pb2, motor_pb2, signal_pb2, types_pb2 from ...general_imports import * from ...Logging import getLogger diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py index 97d8d47f57..bbf4fab3b0 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Materials.py @@ -6,7 +6,7 @@ import adsk -from proto.proto_out import material_pb2 +from src.Proto import material_pb2 from ...general_imports import * from ...Logging import logFailure, timed diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Parser.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Parser.py index fe034d20b4..9ee55cddd4 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Parser.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/Parser.py @@ -5,7 +5,7 @@ import adsk.fusion from google.protobuf.json_format import MessageToJson -from proto.proto_out import assembly_pb2, types_pb2 +from src.Proto import assembly_pb2, types_pb2 from ...APS.APS import getAuth, upload_mirabuf from ...general_imports import * diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/PhysicalProperties.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/PhysicalProperties.py index db488c115a..44d60345a4 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/PhysicalProperties.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/PhysicalProperties.py @@ -22,7 +22,7 @@ import adsk -from proto.proto_out import types_pb2 +from src.Proto import types_pb2 from ...general_imports import INTERNAL_ID from ...Logging import logFailure diff --git a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/RigidGroup.py b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/RigidGroup.py index 362a2a6e72..bb144f6b45 100644 --- a/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/RigidGroup.py +++ b/exporter/SynthesisFusionAddin/src/Parser/SynthesisParser/RigidGroup.py @@ -17,7 +17,7 @@ import adsk.core import adsk.fusion -from proto.proto_out import assembly_pb2 +from src.Proto import assembly_pb2 from ...Logging import logFailure diff --git a/exporter/SynthesisFusionAddin/src/Proto/assembly_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/assembly_pb2.py new file mode 100644 index 0000000000..20803d3601 --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/assembly_pb2.py @@ -0,0 +1,65 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: assembly.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'assembly.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import joint_pb2 as joint__pb2 +import material_pb2 as material__pb2 +import signal_pb2 as signal__pb2 +import types_pb2 as types__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x61ssembly.proto\x12\x07mirabuf\x1a\x0btypes.proto\x1a\x0bjoint.proto\x1a\x0ematerial.proto\x1a\x0csignal.proto\"\xc4\x02\n\x08\x41ssembly\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12#\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x15.mirabuf.AssemblyData\x12\x0f\n\x07\x64ynamic\x18\x03 \x01(\x08\x12\x32\n\rphysical_data\x18\x04 \x01(\x0b\x32\x1b.mirabuf.PhysicalProperties\x12\x31\n\x10\x64\x65sign_hierarchy\x18\x05 \x01(\x0b\x32\x17.mirabuf.GraphContainer\x12\x30\n\x0fjoint_hierarchy\x18\x06 \x01(\x0b\x32\x17.mirabuf.GraphContainer\x12%\n\ttransform\x18\x07 \x01(\x0b\x32\x12.mirabuf.Transform\x12%\n\tthumbnail\x18\x08 \x01(\x0b\x32\x12.mirabuf.Thumbnail\"\xae\x01\n\x0c\x41ssemblyData\x12\x1d\n\x05parts\x18\x01 \x01(\x0b\x32\x0e.mirabuf.Parts\x12%\n\x06joints\x18\x02 \x01(\x0b\x32\x15.mirabuf.joint.Joints\x12.\n\tmaterials\x18\x03 \x01(\x0b\x32\x1b.mirabuf.material.Materials\x12(\n\x07signals\x18\x04 \x01(\x0b\x32\x17.mirabuf.signal.Signals\"\xe2\x02\n\x05Parts\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12=\n\x10part_definitions\x18\x02 \x03(\x0b\x32#.mirabuf.Parts.PartDefinitionsEntry\x12\x39\n\x0epart_instances\x18\x03 \x03(\x0b\x32!.mirabuf.Parts.PartInstancesEntry\x12$\n\tuser_data\x18\x04 \x01(\x0b\x32\x11.mirabuf.UserData\x1aO\n\x14PartDefinitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.mirabuf.PartDefinition:\x02\x38\x01\x1aK\n\x12PartInstancesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.mirabuf.PartInstance:\x02\x38\x01\"\xef\x01\n\x0ePartDefinition\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x32\n\rphysical_data\x18\x02 \x01(\x0b\x32\x1b.mirabuf.PhysicalProperties\x12*\n\x0e\x62\x61se_transform\x18\x03 \x01(\x0b\x32\x12.mirabuf.Transform\x12\x1d\n\x06\x62odies\x18\x04 \x03(\x0b\x32\r.mirabuf.Body\x12\x0f\n\x07\x64ynamic\x18\x05 \x01(\x08\x12\x19\n\x11\x66riction_override\x18\x06 \x01(\x02\x12\x15\n\rmass_override\x18\x07 \x01(\x02\"\xf9\x01\n\x0cPartInstance\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12!\n\x19part_definition_reference\x18\x02 \x01(\t\x12%\n\ttransform\x18\x03 \x01(\x0b\x32\x12.mirabuf.Transform\x12,\n\x10global_transform\x18\x04 \x01(\x0b\x32\x12.mirabuf.Transform\x12\x0e\n\x06joints\x18\x05 \x03(\t\x12\x12\n\nappearance\x18\x06 \x01(\t\x12\x19\n\x11physical_material\x18\x07 \x01(\t\x12\x15\n\rskip_collider\x18\x08 \x01(\x08\"|\n\x04\x42ody\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x0c\n\x04part\x18\x02 \x01(\t\x12,\n\rtriangle_mesh\x18\x03 \x01(\x0b\x32\x15.mirabuf.TriangleMesh\x12\x1b\n\x13\x61ppearance_override\x18\x04 \x01(\t\"\xad\x01\n\x0cTriangleMesh\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x12\n\nhas_volume\x18\x02 \x01(\x08\x12\x1a\n\x12material_reference\x18\x03 \x01(\t\x12\x1d\n\x04mesh\x18\x04 \x01(\x0b\x32\r.mirabuf.MeshH\x00\x12$\n\x05\x62mesh\x18\x05 \x01(\x0b\x32\x13.mirabuf.BinaryMeshH\x00\x42\x0b\n\tmesh_type\"C\n\x04Mesh\x12\r\n\x05verts\x18\x01 \x03(\x02\x12\x0f\n\x07normals\x18\x02 \x03(\x02\x12\n\n\x02uv\x18\x03 \x03(\x02\x12\x0f\n\x07indices\x18\x04 \x03(\x05\"\x1a\n\nBinaryMesh\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\x02H\x01\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'assembly_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'H\001' + _globals['_PARTS_PARTDEFINITIONSENTRY']._loaded_options = None + _globals['_PARTS_PARTDEFINITIONSENTRY']._serialized_options = b'8\001' + _globals['_PARTS_PARTINSTANCESENTRY']._loaded_options = None + _globals['_PARTS_PARTINSTANCESENTRY']._serialized_options = b'8\001' + _globals['_ASSEMBLY']._serialized_start=84 + _globals['_ASSEMBLY']._serialized_end=408 + _globals['_ASSEMBLYDATA']._serialized_start=411 + _globals['_ASSEMBLYDATA']._serialized_end=585 + _globals['_PARTS']._serialized_start=588 + _globals['_PARTS']._serialized_end=942 + _globals['_PARTS_PARTDEFINITIONSENTRY']._serialized_start=786 + _globals['_PARTS_PARTDEFINITIONSENTRY']._serialized_end=865 + _globals['_PARTS_PARTINSTANCESENTRY']._serialized_start=867 + _globals['_PARTS_PARTINSTANCESENTRY']._serialized_end=942 + _globals['_PARTDEFINITION']._serialized_start=945 + _globals['_PARTDEFINITION']._serialized_end=1184 + _globals['_PARTINSTANCE']._serialized_start=1187 + _globals['_PARTINSTANCE']._serialized_end=1436 + _globals['_BODY']._serialized_start=1438 + _globals['_BODY']._serialized_end=1562 + _globals['_TRIANGLEMESH']._serialized_start=1565 + _globals['_TRIANGLEMESH']._serialized_end=1738 + _globals['_MESH']._serialized_start=1740 + _globals['_MESH']._serialized_end=1807 + _globals['_BINARYMESH']._serialized_start=1809 + _globals['_BINARYMESH']._serialized_end=1835 +# @@protoc_insertion_point(module_scope) diff --git a/exporter/SynthesisFusionAddin/src/Proto/joint_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/joint_pb2.py new file mode 100644 index 0000000000..6a14bfadaa --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/joint_pb2.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: joint.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'joint.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import motor_pb2 as motor__pb2 +import types_pb2 as types__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bjoint.proto\x12\rmirabuf.joint\x1a\x0btypes.proto\x1a\x0bmotor.proto\"\x9d\x04\n\x06Joints\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x46\n\x11joint_definitions\x18\x02 \x03(\x0b\x32+.mirabuf.joint.Joints.JointDefinitionsEntry\x12\x42\n\x0fjoint_instances\x18\x03 \x03(\x0b\x32).mirabuf.joint.Joints.JointInstancesEntry\x12/\n\x0crigid_groups\x18\x04 \x03(\x0b\x32\x19.mirabuf.joint.RigidGroup\x12\x46\n\x11motor_definitions\x18\x05 \x03(\x0b\x32+.mirabuf.joint.Joints.MotorDefinitionsEntry\x1aM\n\x15JointDefinitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.mirabuf.joint.Joint:\x02\x38\x01\x1aS\n\x13JointInstancesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.mirabuf.joint.JointInstance:\x02\x38\x01\x1aM\n\x15MotorDefinitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.mirabuf.motor.Motor:\x02\x38\x01\"\x99\x02\n\rJointInstance\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x15\n\risEndEffector\x18\x02 \x01(\x08\x12\x13\n\x0bparent_part\x18\x03 \x01(\t\x12\x12\n\nchild_part\x18\x04 \x01(\t\x12\x17\n\x0fjoint_reference\x18\x05 \x01(\t\x12 \n\x06offset\x18\x06 \x01(\x0b\x32\x10.mirabuf.Vector3\x12&\n\x05parts\x18\x07 \x01(\x0b\x32\x17.mirabuf.GraphContainer\x12\x18\n\x10signal_reference\x18\x08 \x01(\t\x12.\n\x0bmotion_link\x18\t \x03(\x0b\x32\x19.mirabuf.joint.MotionLink\"E\n\nMotionLink\x12\x16\n\x0ejoint_instance\x18\x01 \x01(\t\x12\r\n\x05ratio\x18\x02 \x01(\x02\x12\x10\n\x08reversed\x18\x03 \x01(\x08\"\xfc\x02\n\x05Joint\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12 \n\x06origin\x18\x02 \x01(\x0b\x32\x10.mirabuf.Vector3\x12\x35\n\x11joint_motion_type\x18\x03 \x01(\x0e\x32\x1a.mirabuf.joint.JointMotion\x12\x17\n\x0f\x62reak_magnitude\x18\x04 \x01(\x02\x12\x34\n\nrotational\x18\x05 \x01(\x0b\x32\x1e.mirabuf.joint.RotationalJointH\x00\x12\x32\n\tprismatic\x18\x06 \x01(\x0b\x32\x1d.mirabuf.joint.PrismaticJointH\x00\x12,\n\x06\x63ustom\x18\x07 \x01(\x0b\x32\x1a.mirabuf.joint.CustomJointH\x00\x12$\n\tuser_data\x18\x08 \x01(\x0b\x32\x11.mirabuf.UserData\x12\x17\n\x0fmotor_reference\x18\t \x01(\tB\r\n\x0bJointMotion\"-\n\x08\x44ynamics\x12\x0f\n\x07\x64\x61mping\x18\x01 \x01(\x02\x12\x10\n\x08\x66riction\x18\x02 \x01(\x02\"H\n\x06Limits\x12\r\n\x05lower\x18\x01 \x01(\x02\x12\r\n\x05upper\x18\x02 \x01(\x02\x12\x10\n\x08velocity\x18\x03 \x01(\x02\x12\x0e\n\x06\x65\x66\x66ort\x18\x04 \x01(\x02\"Z\n\x06Safety\x12\x13\n\x0blower_limit\x18\x01 \x01(\x02\x12\x13\n\x0bupper_limit\x18\x02 \x01(\x02\x12\x12\n\nk_position\x18\x03 \x01(\x02\x12\x12\n\nk_velocity\x18\x04 \x01(\x02\"\xbb\x01\n\x03\x44OF\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\x04\x61xis\x18\x02 \x01(\x0b\x32\x10.mirabuf.Vector3\x12%\n\x0epivotDirection\x18\x03 \x01(\x0e\x32\r.mirabuf.Axis\x12)\n\x08\x64ynamics\x18\x04 \x01(\x0b\x32\x17.mirabuf.joint.Dynamics\x12%\n\x06limits\x18\x05 \x01(\x0b\x32\x15.mirabuf.joint.Limits\x12\r\n\x05value\x18\x06 \x01(\x02\"/\n\x0b\x43ustomJoint\x12 \n\x04\x64ofs\x18\x01 \x03(\x0b\x32\x12.mirabuf.joint.DOF\"A\n\x0fRotationalJoint\x12.\n\x12rotational_freedom\x18\x01 \x01(\x0b\x32\x12.mirabuf.joint.DOF\"u\n\tBallJoint\x12\x1f\n\x03yaw\x18\x01 \x01(\x0b\x32\x12.mirabuf.joint.DOF\x12!\n\x05pitch\x18\x02 \x01(\x0b\x32\x12.mirabuf.joint.DOF\x12$\n\x08rotation\x18\x03 \x01(\x0b\x32\x12.mirabuf.joint.DOF\"?\n\x0ePrismaticJoint\x12-\n\x11prismatic_freedom\x18\x01 \x01(\x0b\x32\x12.mirabuf.joint.DOF\"/\n\nRigidGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0boccurrences\x18\x02 \x03(\t*r\n\x0bJointMotion\x12\t\n\x05RIGID\x10\x00\x12\x0c\n\x08REVOLUTE\x10\x01\x12\n\n\x06SLIDER\x10\x02\x12\x0f\n\x0b\x43YLINDRICAL\x10\x03\x12\x0b\n\x07PINSLOT\x10\x04\x12\n\n\x06PLANAR\x10\x05\x12\x08\n\x04\x42\x41LL\x10\x06\x12\n\n\x06\x43USTOM\x10\x07\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'joint_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_JOINTS_JOINTDEFINITIONSENTRY']._loaded_options = None + _globals['_JOINTS_JOINTDEFINITIONSENTRY']._serialized_options = b'8\001' + _globals['_JOINTS_JOINTINSTANCESENTRY']._loaded_options = None + _globals['_JOINTS_JOINTINSTANCESENTRY']._serialized_options = b'8\001' + _globals['_JOINTS_MOTORDEFINITIONSENTRY']._loaded_options = None + _globals['_JOINTS_MOTORDEFINITIONSENTRY']._serialized_options = b'8\001' + _globals['_JOINTMOTION']._serialized_start=2090 + _globals['_JOINTMOTION']._serialized_end=2204 + _globals['_JOINTS']._serialized_start=57 + _globals['_JOINTS']._serialized_end=598 + _globals['_JOINTS_JOINTDEFINITIONSENTRY']._serialized_start=357 + _globals['_JOINTS_JOINTDEFINITIONSENTRY']._serialized_end=434 + _globals['_JOINTS_JOINTINSTANCESENTRY']._serialized_start=436 + _globals['_JOINTS_JOINTINSTANCESENTRY']._serialized_end=519 + _globals['_JOINTS_MOTORDEFINITIONSENTRY']._serialized_start=521 + _globals['_JOINTS_MOTORDEFINITIONSENTRY']._serialized_end=598 + _globals['_JOINTINSTANCE']._serialized_start=601 + _globals['_JOINTINSTANCE']._serialized_end=882 + _globals['_MOTIONLINK']._serialized_start=884 + _globals['_MOTIONLINK']._serialized_end=953 + _globals['_JOINT']._serialized_start=956 + _globals['_JOINT']._serialized_end=1336 + _globals['_DYNAMICS']._serialized_start=1338 + _globals['_DYNAMICS']._serialized_end=1383 + _globals['_LIMITS']._serialized_start=1385 + _globals['_LIMITS']._serialized_end=1457 + _globals['_SAFETY']._serialized_start=1459 + _globals['_SAFETY']._serialized_end=1549 + _globals['_DOF']._serialized_start=1552 + _globals['_DOF']._serialized_end=1739 + _globals['_CUSTOMJOINT']._serialized_start=1741 + _globals['_CUSTOMJOINT']._serialized_end=1788 + _globals['_ROTATIONALJOINT']._serialized_start=1790 + _globals['_ROTATIONALJOINT']._serialized_end=1855 + _globals['_BALLJOINT']._serialized_start=1857 + _globals['_BALLJOINT']._serialized_end=1974 + _globals['_PRISMATICJOINT']._serialized_start=1976 + _globals['_PRISMATICJOINT']._serialized_end=2039 + _globals['_RIGIDGROUP']._serialized_start=2041 + _globals['_RIGIDGROUP']._serialized_end=2088 +# @@protoc_insertion_point(module_scope) diff --git a/exporter/SynthesisFusionAddin/src/Proto/material_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/material_pb2.py new file mode 100644 index 0000000000..3c54e0c3dc --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/material_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: material.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'material.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import types_pb2 as types__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0ematerial.proto\x12\x10mirabuf.material\x1a\x0btypes.proto\"\xea\x02\n\tMaterials\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12M\n\x11physicalMaterials\x18\x02 \x03(\x0b\x32\x32.mirabuf.material.Materials.PhysicalMaterialsEntry\x12\x41\n\x0b\x61ppearances\x18\x03 \x03(\x0b\x32,.mirabuf.material.Materials.AppearancesEntry\x1a\\\n\x16PhysicalMaterialsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".mirabuf.material.PhysicalMaterial:\x02\x38\x01\x1aP\n\x10\x41ppearancesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.mirabuf.material.Appearance:\x02\x38\x01\"\x80\x01\n\nAppearance\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x1e\n\x06\x61lbedo\x18\x02 \x01(\x0b\x32\x0e.mirabuf.Color\x12\x11\n\troughness\x18\x03 \x01(\x01\x12\x10\n\x08metallic\x18\x04 \x01(\x01\x12\x10\n\x08specular\x18\x05 \x01(\x01\"\x82\x06\n\x10PhysicalMaterial\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12;\n\x07thermal\x18\x03 \x01(\x0b\x32*.mirabuf.material.PhysicalMaterial.Thermal\x12\x41\n\nmechanical\x18\x04 \x01(\x0b\x32-.mirabuf.material.PhysicalMaterial.Mechanical\x12=\n\x08strength\x18\x05 \x01(\x0b\x32+.mirabuf.material.PhysicalMaterial.Strength\x12\x18\n\x10\x64ynamic_friction\x18\x06 \x01(\x02\x12\x17\n\x0fstatic_friction\x18\x07 \x01(\x02\x12\x13\n\x0brestitution\x18\x08 \x01(\x02\x12\x12\n\ndeformable\x18\t \x01(\x08\x12@\n\x07matType\x18\n \x01(\x0e\x32/.mirabuf.material.PhysicalMaterial.MaterialType\x1a\x65\n\x07Thermal\x12\x1c\n\x14thermal_conductivity\x18\x01 \x01(\x02\x12\x15\n\rspecific_heat\x18\x02 \x01(\x02\x12%\n\x1dthermal_expansion_coefficient\x18\x03 \x01(\x02\x1aw\n\nMechanical\x12\x11\n\tyoung_mod\x18\x01 \x01(\x02\x12\x15\n\rpoisson_ratio\x18\x02 \x01(\x02\x12\x11\n\tshear_mod\x18\x03 \x01(\x02\x12\x0f\n\x07\x64\x65nsity\x18\x04 \x01(\x02\x12\x1b\n\x13\x64\x61mping_coefficient\x18\x05 \x01(\x02\x1aW\n\x08Strength\x12\x16\n\x0eyield_strength\x18\x01 \x01(\x02\x12\x18\n\x10tensile_strength\x18\x02 \x01(\x02\x12\x19\n\x11thermal_treatment\x18\x03 \x01(\x08\"&\n\x0cMaterialType\x12\t\n\x05METAL\x10\x00\x12\x0b\n\x07PLASTIC\x10\x01\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'material_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_MATERIALS_PHYSICALMATERIALSENTRY']._loaded_options = None + _globals['_MATERIALS_PHYSICALMATERIALSENTRY']._serialized_options = b'8\001' + _globals['_MATERIALS_APPEARANCESENTRY']._loaded_options = None + _globals['_MATERIALS_APPEARANCESENTRY']._serialized_options = b'8\001' + _globals['_MATERIALS']._serialized_start=50 + _globals['_MATERIALS']._serialized_end=412 + _globals['_MATERIALS_PHYSICALMATERIALSENTRY']._serialized_start=238 + _globals['_MATERIALS_PHYSICALMATERIALSENTRY']._serialized_end=330 + _globals['_MATERIALS_APPEARANCESENTRY']._serialized_start=332 + _globals['_MATERIALS_APPEARANCESENTRY']._serialized_end=412 + _globals['_APPEARANCE']._serialized_start=415 + _globals['_APPEARANCE']._serialized_end=543 + _globals['_PHYSICALMATERIAL']._serialized_start=546 + _globals['_PHYSICALMATERIAL']._serialized_end=1316 + _globals['_PHYSICALMATERIAL_THERMAL']._serialized_start=965 + _globals['_PHYSICALMATERIAL_THERMAL']._serialized_end=1066 + _globals['_PHYSICALMATERIAL_MECHANICAL']._serialized_start=1068 + _globals['_PHYSICALMATERIAL_MECHANICAL']._serialized_end=1187 + _globals['_PHYSICALMATERIAL_STRENGTH']._serialized_start=1189 + _globals['_PHYSICALMATERIAL_STRENGTH']._serialized_end=1276 + _globals['_PHYSICALMATERIAL_MATERIALTYPE']._serialized_start=1278 + _globals['_PHYSICALMATERIAL_MATERIALTYPE']._serialized_end=1316 +# @@protoc_insertion_point(module_scope) diff --git a/exporter/SynthesisFusionAddin/src/Proto/motor_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/motor_pb2.py new file mode 100644 index 0000000000..7371eb693f --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/motor_pb2.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: motor.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'motor.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import types_pb2 as types__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bmotor.proto\x12\rmirabuf.motor\x1a\x0btypes.proto\"\x98\x01\n\x05Motor\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12*\n\x08\x64\x63_motor\x18\x02 \x01(\x0b\x32\x16.mirabuf.motor.DCMotorH\x00\x12\x32\n\x0csimple_motor\x18\x03 \x01(\x0b\x32\x1a.mirabuf.motor.SimpleMotorH\x00\x42\x0c\n\nmotor_typeJ\x04\x08\x04\x10\x06\"S\n\x0bSimpleMotor\x12\x14\n\x0cstall_torque\x18\x01 \x01(\x02\x12\x14\n\x0cmax_velocity\x18\x02 \x01(\x02\x12\x18\n\x10\x62raking_constant\x18\x03 \x01(\x02\"\x9d\x03\n\x07\x44\x43Motor\x12\x15\n\rreference_url\x18\x02 \x01(\t\x12\x17\n\x0ftorque_constant\x18\x03 \x01(\x02\x12\x14\n\x0c\x65mf_constant\x18\x04 \x01(\x02\x12\x12\n\nresistance\x18\x05 \x01(\x02\x12\x1a\n\x12maximum_effeciency\x18\x06 \x01(\r\x12\x15\n\rmaximum_power\x18\x07 \x01(\r\x12-\n\nduty_cycle\x18\x08 \x01(\x0e\x32\x19.mirabuf.motor.DutyCycles\x12\x31\n\x08\x61\x64vanced\x18\x10 \x01(\x0b\x32\x1f.mirabuf.motor.DCMotor.Advanced\x1a\x96\x01\n\x08\x41\x64vanced\x12\x14\n\x0c\x66ree_current\x18\x01 \x01(\x02\x12\x12\n\nfree_speed\x18\x02 \x01(\r\x12\x15\n\rstall_current\x18\x03 \x01(\x02\x12\x14\n\x0cstall_torque\x18\x04 \x01(\x02\x12\x15\n\rinput_voltage\x18\x05 \x01(\r\x12\x1c\n\x14resistance_variation\x18\x07 \x01(\x02J\x04\x08\x01\x10\x02J\x04\x08\t\x10\x10*h\n\nDutyCycles\x12\x16\n\x12\x43ONTINUOUS_RUNNING\x10\x00\x12\x0e\n\nSHORT_TIME\x10\x01\x12\x19\n\x15INTERMITTENT_PERIODIC\x10\x02\x12\x17\n\x13\x43ONTINUOUS_PERIODIC\x10\x03\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'motor_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_DUTYCYCLES']._serialized_start=699 + _globals['_DUTYCYCLES']._serialized_end=803 + _globals['_MOTOR']._serialized_start=44 + _globals['_MOTOR']._serialized_end=196 + _globals['_SIMPLEMOTOR']._serialized_start=198 + _globals['_SIMPLEMOTOR']._serialized_end=281 + _globals['_DCMOTOR']._serialized_start=284 + _globals['_DCMOTOR']._serialized_end=697 + _globals['_DCMOTOR_ADVANCED']._serialized_start=535 + _globals['_DCMOTOR_ADVANCED']._serialized_end=685 +# @@protoc_insertion_point(module_scope) diff --git a/exporter/SynthesisFusionAddin/src/Proto/readme.md b/exporter/SynthesisFusionAddin/src/Proto/readme.md new file mode 100644 index 0000000000..11ad5046e7 --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/readme.md @@ -0,0 +1 @@ +These files are autogenerated by protobuf. For more information visit ['/exporter/proto/`](../../proto/) diff --git a/exporter/SynthesisFusionAddin/src/Proto/signal_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/signal_pb2.py new file mode 100644 index 0000000000..c981f82f04 --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/signal_pb2.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: signal.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'signal.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import types_pb2 as types__pb2 + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0csignal.proto\x12\x0emirabuf.signal\x1a\x0btypes.proto\"\xac\x01\n\x07Signals\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12:\n\nsignal_map\x18\x02 \x03(\x0b\x32&.mirabuf.signal.Signals.SignalMapEntry\x1aH\n\x0eSignalMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.mirabuf.signal.Signal:\x02\x38\x01\"\xa2\x01\n\x06Signal\x12\x1b\n\x04info\x18\x01 \x01(\x0b\x32\r.mirabuf.Info\x12\"\n\x02io\x18\x02 \x01(\x0e\x32\x16.mirabuf.signal.IOType\x12\x13\n\x0b\x63ustom_type\x18\x03 \x01(\t\x12\x11\n\tsignal_id\x18\x04 \x01(\r\x12/\n\x0b\x64\x65vice_type\x18\x05 \x01(\x0e\x32\x1a.mirabuf.signal.DeviceType*\x1f\n\x06IOType\x12\t\n\x05INPUT\x10\x00\x12\n\n\x06OUTPUT\x10\x01*O\n\nDeviceType\x12\x07\n\x03PWM\x10\x00\x12\x0b\n\x07\x44igital\x10\x01\x12\n\n\x06\x41nalog\x10\x02\x12\x07\n\x03I2C\x10\x03\x12\n\n\x06\x43\x41NBUS\x10\x04\x12\n\n\x06\x43USTOM\x10\x05\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'signal_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_SIGNALS_SIGNALMAPENTRY']._loaded_options = None + _globals['_SIGNALS_SIGNALMAPENTRY']._serialized_options = b'8\001' + _globals['_IOTYPE']._serialized_start=385 + _globals['_IOTYPE']._serialized_end=416 + _globals['_DEVICETYPE']._serialized_start=418 + _globals['_DEVICETYPE']._serialized_end=497 + _globals['_SIGNALS']._serialized_start=46 + _globals['_SIGNALS']._serialized_end=218 + _globals['_SIGNALS_SIGNALMAPENTRY']._serialized_start=146 + _globals['_SIGNALS_SIGNALMAPENTRY']._serialized_end=218 + _globals['_SIGNAL']._serialized_start=221 + _globals['_SIGNAL']._serialized_end=383 +# @@protoc_insertion_point(module_scope) diff --git a/exporter/SynthesisFusionAddin/src/Proto/types_pb2.py b/exporter/SynthesisFusionAddin/src/Proto/types_pb2.py new file mode 100644 index 0000000000..658fabbb7d --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/types_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: types.proto +# Protobuf Python Version: 5.27.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder + +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 1, + '', + 'types.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btypes.proto\x12\x07mirabuf\"\\\n\x04Node\x12\r\n\x05value\x18\x01 \x01(\t\x12\x1f\n\x08\x63hildren\x18\x02 \x03(\x0b\x32\r.mirabuf.Node\x12$\n\tuser_data\x18\x03 \x01(\x0b\x32\x11.mirabuf.UserData\".\n\x0eGraphContainer\x12\x1c\n\x05nodes\x18\x01 \x03(\x0b\x32\r.mirabuf.Node\"b\n\x08UserData\x12)\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1b.mirabuf.UserData.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"*\n\x07Vector3\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"p\n\x12PhysicalProperties\x12\x0f\n\x07\x64\x65nsity\x18\x01 \x01(\x01\x12\x0c\n\x04mass\x18\x02 \x01(\x01\x12\x0e\n\x06volume\x18\x03 \x01(\x01\x12\x0c\n\x04\x61rea\x18\x04 \x01(\x01\x12\x1d\n\x03\x63om\x18\x05 \x01(\x0b\x32\x10.mirabuf.Vector3\"#\n\tTransform\x12\x16\n\x0espatial_matrix\x18\x01 \x03(\x02\"3\n\x05\x43olor\x12\t\n\x01R\x18\x01 \x01(\x05\x12\t\n\x01G\x18\x02 \x01(\x05\x12\t\n\x01\x42\x18\x03 \x01(\x05\x12\t\n\x01\x41\x18\x04 \x01(\x05\"3\n\x04Info\x12\x0c\n\x04GUID\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\r\"`\n\tThumbnail\x12\r\n\x05width\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\x11\n\textension\x18\x03 \x01(\t\x12\x13\n\x0btransparent\x18\x04 \x01(\x08\x12\x0c\n\x04\x64\x61ta\x18\x05 \x01(\x0c*\x1b\n\x04\x41xis\x12\x05\n\x01X\x10\x00\x12\x05\n\x01Y\x10\x01\x12\x05\n\x01Z\x10\x02\x62\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'types_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_USERDATA_DATAENTRY']._loaded_options = None + _globals['_USERDATA_DATAENTRY']._serialized_options = b'8\001' + _globals['_AXIS']._serialized_start=665 + _globals['_AXIS']._serialized_end=692 + _globals['_NODE']._serialized_start=24 + _globals['_NODE']._serialized_end=116 + _globals['_GRAPHCONTAINER']._serialized_start=118 + _globals['_GRAPHCONTAINER']._serialized_end=164 + _globals['_USERDATA']._serialized_start=166 + _globals['_USERDATA']._serialized_end=264 + _globals['_USERDATA_DATAENTRY']._serialized_start=221 + _globals['_USERDATA_DATAENTRY']._serialized_end=264 + _globals['_VECTOR3']._serialized_start=266 + _globals['_VECTOR3']._serialized_end=308 + _globals['_PHYSICALPROPERTIES']._serialized_start=310 + _globals['_PHYSICALPROPERTIES']._serialized_end=422 + _globals['_TRANSFORM']._serialized_start=424 + _globals['_TRANSFORM']._serialized_end=459 + _globals['_COLOR']._serialized_start=461 + _globals['_COLOR']._serialized_end=512 + _globals['_INFO']._serialized_start=514 + _globals['_INFO']._serialized_end=565 + _globals['_THUMBNAIL']._serialized_start=567 + _globals['_THUMBNAIL']._serialized_end=663 +# @@protoc_insertion_point(module_scope) From 57ca20865e0e56bb0bf9772c382b42be7f04efed Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Tue, 6 Aug 2024 11:38:56 -0700 Subject: [PATCH 2/6] Typo correction --- exporter/SynthesisFusionAddin/src/Proto/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/SynthesisFusionAddin/src/Proto/readme.md b/exporter/SynthesisFusionAddin/src/Proto/readme.md index 11ad5046e7..3f4ac2a4c6 100644 --- a/exporter/SynthesisFusionAddin/src/Proto/readme.md +++ b/exporter/SynthesisFusionAddin/src/Proto/readme.md @@ -1 +1 @@ -These files are autogenerated by protobuf. For more information visit ['/exporter/proto/`](../../proto/) +These files are autogenerated by protobuf. For more information visit [`/exporter/proto/`](../../proto/) From fe1a8a71528b28a3973d370ddd45e4904186a476 Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:54:32 -0700 Subject: [PATCH 3/6] Remove unused import --- exporter/SynthesisFusionAddin/src/Dependencies.py | 1 - 1 file changed, 1 deletion(-) diff --git a/exporter/SynthesisFusionAddin/src/Dependencies.py b/exporter/SynthesisFusionAddin/src/Dependencies.py index 367677c9e6..3bb7261501 100644 --- a/exporter/SynthesisFusionAddin/src/Dependencies.py +++ b/exporter/SynthesisFusionAddin/src/Dependencies.py @@ -1,5 +1,4 @@ import importlib.machinery -import importlib.util import os import subprocess import sys From 63864f52328c0abee5db19a92acbba114117120f Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:55:29 -0700 Subject: [PATCH 4/6] Remove import path for `proto.proto_out` --- exporter/SynthesisFusionAddin/Synthesis.py | 1 - 1 file changed, 1 deletion(-) diff --git a/exporter/SynthesisFusionAddin/Synthesis.py b/exporter/SynthesisFusionAddin/Synthesis.py index bd61e28e39..c5befeddde 100644 --- a/exporter/SynthesisFusionAddin/Synthesis.py +++ b/exporter/SynthesisFusionAddin/Synthesis.py @@ -5,7 +5,6 @@ # Required for absolute imports. sys.path.append(os.path.dirname(os.path.abspath(__file__))) -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "proto", "proto_out"))) from src.Dependencies import resolveDependencies from src.Logging import logFailure, setupLogger From dbaca757dbe6b29f3489f7b3a3328c4a2238a794 Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:50:13 -0700 Subject: [PATCH 5/6] Added a "It works on my machine fix" --- exporter/SynthesisFusionAddin/src/Proto/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 exporter/SynthesisFusionAddin/src/Proto/__init__.py diff --git a/exporter/SynthesisFusionAddin/src/Proto/__init__.py b/exporter/SynthesisFusionAddin/src/Proto/__init__.py new file mode 100644 index 0000000000..96a36c3a66 --- /dev/null +++ b/exporter/SynthesisFusionAddin/src/Proto/__init__.py @@ -0,0 +1,4 @@ +import sys +import os + +sys.path.append(os.path.dirname(os.path.abspath(__file__))) From faae7872dd028ffd4bedde42d762c2792737b0d5 Mon Sep 17 00:00:00 2001 From: BrandonPacewic <92102436+BrandonPacewic@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:53:42 -0700 Subject: [PATCH 6/6] Update `README.md` + formatting fix --- exporter/SynthesisFusionAddin/README.md | 17 ++++++++--------- .../SynthesisFusionAddin/src/Proto/__init__.py | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/exporter/SynthesisFusionAddin/README.md b/exporter/SynthesisFusionAddin/README.md index 4fc4933373..1e61d0735c 100644 --- a/exporter/SynthesisFusionAddin/README.md +++ b/exporter/SynthesisFusionAddin/README.md @@ -33,15 +33,14 @@ We use `VSCode` Primarily, download it to interact with our code or use your own ### How to Build + Run -1. See root [`README`](/README.md) on how to run `init` script -2. Open `Autodesk Fusion` -3. Select `UTILITIES` from the top bar -4. Click `ADD-INS` Button -5. Click `Add-Ins` tab at the top of Scripts and Add-Ins dialog -6. Press + Button under **My Add-Ins** -7. Navigate to the containing folder for this Addin and click open at bottom - _clone-directory_/synthesis/exporters/SynthesisFusionAddin -8. Synthesis should be an option - select it and click run at the bottom of the dialog -9. There should now be a button that says Synthesis in your utilities menu +1. Open `Autodesk Fusion` +2. Select `UTILITIES` from the top bar +3. Click `ADD-INS` Button +4. Click `Add-Ins` tab at the top of Scripts and Add-Ins dialog +5. Press + Button under **My Add-Ins** +6. Navigate to the containing folder for this Addin and click open at bottom - _clone-directory_/synthesis/exporters/SynthesisFusionAddin +7. Synthesis should be an option - select it and click run at the bottom of the dialog +8. There should now be a button that says Synthesis in your utilities menu - If there is no button there may be a problem - see below for [checking log file](#debug-non-start) --- diff --git a/exporter/SynthesisFusionAddin/src/Proto/__init__.py b/exporter/SynthesisFusionAddin/src/Proto/__init__.py index 96a36c3a66..087dab646e 100644 --- a/exporter/SynthesisFusionAddin/src/Proto/__init__.py +++ b/exporter/SynthesisFusionAddin/src/Proto/__init__.py @@ -1,4 +1,4 @@ -import sys import os +import sys sys.path.append(os.path.dirname(os.path.abspath(__file__)))