CHH3213 / Note-Ubuntu_CHH3213

ubuntu系统CHH3213上做的笔记
0 stars 0 forks source link

5. solidworks导出的模型为黑色的 #5

Open CHH3213 opened 3 years ago

CHH3213 commented 3 years ago

只需要将导出后的sdf文件中的material标签中的以下代码注释掉(即文中已经注释掉的部分):

          <material>
<!--            <shader type='pixel'>-->
<!--              <normal_map>__default__</normal_map>-->
<!--            </shader>-->
            <script>
              <name>Gazebo/Red</name>
              <uri>file://media/materials/scripts/gazebo.material</uri>
<!--              <name>ModelPreview_1::base_link::base_link_visual_MATERIAL_</name>-->
<!--              <uri>__default__</uri>-->
            </script>
<!--            <ambient>0 0 0 1</ambient>-->
<!--            <diffuse>0 0 0 1</diffuse>-->
<!--            <specular>0 0 0 1</specular>-->
<!--            <emissive>0 0 0 1</emissive>-->
          </material>
<!--          <transparency>0</transparency>-->
<!--          <cast_shadows>1</cast_shadows>-->