s40723238 cad2019

  • Home
    • Site Map
    • reveal
    • blog
  • home
  • weeks
    • week2-5
    • week6-9
    • week10-14
      • NX 12 for Engineering Design
      • cad_history第18章
      • cad_history第19章
      • cad_history第20章
    • week15-18
    • 軟體介紹(solidworks)
  • About
  • Develop
week2-5 << Previous Next >> week10-14

week6-9

week6

畫自走車模型

v-rep模擬

1.從下載下來的web_vrep2中app.py用編輯器開啟


2.從下載下來的路徑V-REP3\V-REP_PRO_EDU中找到vrep.exe


3.用v_rep中的file的open scene將下載下來的web_vrep2中two_wheeler.ttt打開


4.剛剛編輯器開啟之app.py使用編輯器的tool中的go將其控制器開啟

5.使用localhost:5000將控制器開啟


6.運用控制器的前後左右測試是否可以控制車子


7.v-rep必須要將右上方開始鈕按下

v-rep加入start跟stop鍵

1.將mde_course打開


2.用編輯器開啟templates中的controls.html


3.在第19行打上從下方向左按鈕指令複製來的指令並且將其改寫成start和stop


4.因為有start和stop兩個按鈕所以必須要放置兩行指令

指令:<td><a class="pure-button pure-button-primary" href="/do/start">start</a></td><a class="pure-button pure-button-primary" href="/do/stop">stop</a></td>


5.結束後儲存並且用上方tool中的go測試是否已將按鈕放入


6.用編輯器開啟vrep_linefollower定義其中開始和結束按鈕

指令:if direction == 'start':
vrep.simxStartSimulation(self.clientID, vrep.simx_opmode_oneshot)
elif direction == 'stop':
vrep.simxStopSimulation(self.clientID, vrep.simx_opmode_oneshot)
else :


7.到課程網站中的老師倉儲中尋找issue


8.其中有一項issue為置入start和stop按鈕的指令


9.複製並且依照影片中將其貼上


10.在每行指令前定義好所需的指令例如:(if else elif)


11.打開vrep.exe並且用編輯器打開app.py並執行tool中的go


12.測試是否有成功運行

week7

solvespace編譯-更改help-about

1.開啟solvespace.cpp找到952行在solvespace後方加上compiled by 自己的學號

2.刪除舊的這個路徑中201906_fall\tmp\solvespace\build\src\CMakeFiles的solvespace.cpp.obj檔,此檔案若無刪除solvespace就只會讀取這個舊有的檔案

3.進入solvespace資料夾中的這個資料夾用指令cd build

4.在黑窗中打上mingw32-make

5.開啟solvespace

6.在help中的about是否有compiled by 自己學號

slovespace繪圖驗證


week8

建立webot開啟檔案:

(1)將mde.tw中的Webots_2019b_rev1.7z

(2)將start_mdecourse.bat檔複製一份並且貼上

(3)將start_mdecourse.bat名稱更改為start_mdecourse -webot.bat檔

(4)依照影片把這行指令貼入path_webots=%Disk%:\Webots_2019b_rev1\msys64\mingw64\bin;%Disk%:\Webots_2019b_rev1\msys64\usr\bin

(5)確定路徑是正確的webot檔案應該在Y:\201906_fall\data中

(6)開啟webot開啟檔也就是start_mdecourse -webot.bat

(7)開啟webot中的open sample world測試是否可以導入

開啟網誌:

(1)將leo edit開起來

(2)將config中的pelican.leo丟入leo edit裡面

(3)修改影片中有講的路徑中的siteurl更改成自己blog網址

(4)依照影片中的步驟將指令複製並在黑窗中執行

week9
期中報告

week2-5 << Previous Next >> week10-14

Copyright © All rights reserved | This template is made with by Colorlib