Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Case 1: "visual" tag group before "collision" group: Both are present in the output of gz sdf --print
- <path_to_model>/model.sdf
- <?xml version="1.0" ?>
- <sdf version="1.5">
- <model name="block_wall">
- <pose>0 0 0.30924 0 0 0</pose>
- <static>true</static>
- <link name="blocks">
- <visual name="visual">
- <geometry>
- <mesh>
- <uri>model://block_wall_softbody/meshes/block_wall.dae</uri>
- </mesh>
- </geometry>
- </visual>
- <collision name="collision">
- <geometry>
- <mesh>
- <uri>model://block_wall_softbody/meshes/block_wall.dae</uri>
- </mesh>
- </geometry>
- <surface>
- <bounce>
- <restitution_coefficient>0.0</restitution_coefficient>
- <threshold>100000</threshold>
- </bounce>
- <friction>
- <ode>
- <mu>100</mu>
- <mu2>50</mu2>
- </ode>
- </friction>
- <contact>
- <ode>
- <soft_cfm>0.0</soft_cfm>
- <!--"sponginess", 0.0=hard-->
- <soft_erp>0.2</soft_erp>
- <max_vel>0.0</max_vel>
- <min_depth>0.0</min_depth>
- </ode>
- </contact>
- <soft_contact>
- <bullet>
- <totalmass>10.0</totalmass>
- <num_clusters>128</num_clusters>
- <aeromodel>0</aeromodel>
- <kVCF>1.0</kVCF>
- <kDP>0.0</kDP>
- <kDG>0.0</kDG>
- <kLF>0.0</kLF>
- <kPR>0.0</kPR>
- <kVC>0.0</kVC>
- <kDF>0.2</kDF>
- <kMT>0.0</kMT>
- <kCHR>1.0</kCHR>
- <kKHR>0.1</kKHR>
- <kSHR>1.0</kSHR>
- <kAHR>0.7</kAHR>
- <kSRHR_CL>0.1</kSHR_CL>
- <kSKHR_CL>1.0</kSKHR_CL>
- <kSSHR_CL>0.5</kSSHR_CL>
- <kSR_SPLT_CL>0.5</kSR_SPLT_CL>
- <kSK_SPLT_CL>0.5</kSK_SPLT_CL>
- <kSS_SPLT_CL>0.5</kSS_SPLT_CL>
- <maxvolume>1.0</maxvolume>
- <timescale>1.0</timescale>
- <viterations>0</viterations>
- <piterations>1</piterations>
- <diterations>0</diterations>
- <citerations>4</citerations>
- <collisions>1</collisions>
- </bullet>
- </soft_contact>
- </surface>
- </collision>
- </link>
- </model>
- </sdf>
- Case 2: "visual" tag group after "collision" group: Only "collision" tag group is present in the output of gz sdf --print
- <sdf version='1.5'>
- <model name='block_wall'>
- <pose>0 0 0.30924 0 -0 0</pose>
- <static>1</static>
- <link name='blocks'>
- <collision name='collision'>
- <geometry>
- <mesh>
- <uri>model://block_wall_softbody/meshes/block_wall.dae</uri>
- </mesh>
- </geometry>
- <surface>
- <bounce>
- <restitution_coefficient>0</restitution_coefficient>
- <threshold>100000</threshold>
- </bounce>
- <friction>
- <ode>
- <mu>100</mu>
- <mu2>50</mu2>
- </ode>
- </friction>
- <contact>
- <ode>
- <soft_cfm>0</soft_cfm>
- <soft_erp>0.2</soft_erp>
- <max_vel>0</max_vel>
- <min_depth>0</min_depth>
- </ode>
- </contact>
- <soft_contact>
- <bullet>
- <totalmass>10</totalmass>
- <num_clusters>128</num_clusters>
- <aeromodel>0</aeromodel>
- <kVCF>1</kVCF>
- <kDP>0</kDP>
- <kDG>0</kDG>
- <kLF>0</kLF>
- <kPR>0</kPR>
- <kVC>0</kVC>
- <kDF>0.2</kDF>
- <kMT>0</kMT>
- <kCHR>1</kCHR>
- <kKHR>0.1</kKHR>
- <kSHR>1</kSHR>
- <kAHR>0.7</kAHR>
- <kSRHR_CL>0.1</kSRHR_CL>
- <kSKHR_CL>1</kSKHR_CL>
- <kSSHR_CL>0.5</kSSHR_CL>
- <kSR_SPLT_CL>0.5</kSR_SPLT_CL>
- <kSK_SPLT_CL>0.5</kSK_SPLT_CL>
- <kSS_SPLT_CL>0.5</kSS_SPLT_CL>
- <maxvolume>1</maxvolume>
- <timescale>1</timescale>
- <viterations>0</viterations>
- <piterations>1</piterations>
- <diterations>0</diterations>
- <citerations>4</citerations>
- <collisions>1</collisions>
- </bullet>
- </soft_contact>
- </surface>
- </collision>
- <velocity_decay>
- <linear>0</linear>
- <angular>0</angular>
- </velocity_decay>
- </link>
- </model>
- </sdf>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement