聯(lián)系人:藍艷萍
手機:15359298293
QQ:2259678687
郵箱:lanlan@szcxdcs.com
地址:深圳市寶安區(qū)西鄉(xiāng)街道臣田社區(qū)寶民二路東方雅苑2層B39
分類: 羅克韋爾ALLenBradley
聯(lián)系人:藍艷萍
手機:15359298293
QQ:2259678687
郵箱:lanlan@szcxdcs.com
地址:深圳市寶安區(qū)西鄉(xiāng)街道臣田社區(qū)寶民二路東方雅苑2層B39
TRUMPF MBE3-50 |
TRUMPF MBE3-50 |
接下來要設(shè)法透過Arduino在ROS的世界說話。最簡單的方法是使用機器人啟動檔。雖然以下的檔案內(nèi)容非常簡單,但是這里要追加啟動檔,如此一來即使是非常復(fù)雜的機器人,也能用一個指令啟動。
$ cat rosservo.launch
$ roslaunch ./rosservo.lanch
rostopic指令可以看出ROS訊息傳送到機器人的哪個部位??戳讼旅娴某绦虼a就會發(fā)現(xiàn),「/head/tilt」可以透過Arduino使用。訊息要使用「rostopic」傳送。-1的選項只會發(fā)布(publish)訊息一次,通知/head/tilt傳送一個浮點數(shù)。
$ rostopic list
/diagnostics
/head/tilt
/rosout
/rosout_agg
$ rostopic pub -1 /head/tiltstd_msgs/Float32 0.4
$ rostopic pub -1 /head/tilt std_msgs/Float320.9
Terry和Houndbot都是ROS機器人,以6061個鋁合金零件制造而成。項目的目標是要盡量讓這些機器人自主運動。
以下的Python腳本程序會監(jiān)聽「/head/tilt/smooth」的訊息,朝「/head/tilt」發(fā)布許多訊息,好讓伺服機轉(zhuǎn)到目標角度之前慢慢加速,再慢慢延遲旋轉(zhuǎn)。當訊息抵達「/head/tilt/smooth」時一定會呼叫「moveServo_cb」。這個回調(diào)函式會從-90到+90度之間每10度產(chǎn)生1個數(shù)值,追加到角度數(shù)組當中?!竤in()」會取這個角度,數(shù)值從-1到+1慢慢增加。該數(shù)值加1之后,范圍就會變成0到+2,再除以2之后, 0到+1的曲線數(shù)值數(shù)組就完成了。然后再看看m數(shù)組當中,每當發(fā)布訊息時,就會稍微前進一點,范圍在r之內(nèi),直到1*r或是全范圍為止。
(7108) Square D Relay 8501-LO80 10A 8 P 110/50 120/60
(N3-2) 1 ALLEN BRADLEY 802T-CP1 LIMIT SWITCH N3-2
(8326) Allen Bradley Limit Switch 802T-K1TPD
(8826) Allen Bradley Limit Switch 802T-K1TPD
(8827) Mitsubishi Plug MS3106A10SL-4S
(4957) Lot of 2 Allen Bradley Contactor 100-C30DJ01 600
(7612) Allen Bradley Cast Aluminum Push Button Station
(6493) Balluff Inductive Proximity Sensor BES 516-371-E
(8548) Barksdale Valve 9001-MC
(7039) White-Rodgers Room Thermostat 152-10 55-95 Deg.
(6760) Pilz Potentiometer R10MOHM SEE PICS (6760)
(8915) Banner Photoelectric Sensor 02994 NIB
(6565) Siemens Limit Switch 3SE03-SA6PC 1NO 1NC w/
(3260)C Interroll PC Alarm Board 8985ARO (3260) C
(3737) Cutler Hammer Pushbutton Green Momentary 10250T7
(3128)C Lot of 3 Allen Bradley Fiber Optic Cables 99-34
(5210)Banner Photoelectric Switch 27298 Barrel Receiver
(7186) P&H Harnischfeger Contact Kit NIB (7186)
(8270) Warner Power Supply for Clutch Brake MCS-801 (8
(8831) Allen Bradley Illuminated Selector 800T-16JB91KB
(7505) Pepperl & Fuchs Photoelectric Sensor 84099 4 Mod
(6418) Cutler Hammer Proximity Sensor E57LAL8T110SD (6
(8616) Binks Repair Kit Air Motor 6-183 SEE PICS
(4567) GE Circuit Breaker 400A 2P SOLA26A10400 Shunt Tr
(5704)F Allen Bradley Trip Unit 0.4-0.6AMP Thermal W/Re
(5757)B Omron Limit Switch WLG2-55TSLD Lever Arm LED (5
(3449) Allen Bradley Pre-Wired Limit Switch 802M-DY8 B
(5034) Lot of 30 Swagelok Union Tees B-600-3 3/8" 3/8"
(8311) Cutler Hammer Push Button Assembly Maint. Red Mu
(8336) Dongan Transformer Ignition 120V A06-SA6 (8336)
(8870) Asco Rebuild Kit 262964
Superior Electric Slo-Syn Synchronous Stepping Motor BM
(7986) Jensen Swagelok 1/2" Clamp Sight Glass 162KC415
(6312)B Swagelok Stainless 1/2" Valve SS-12NBF8-SH NR
(A9) 1 EFECTOR IFM IE5288 Proximity Switch (A9)
(L20) 1 GE FANUC IC600YB929A HIGH DENSITY INPUT MODULE
(B2) 3 BANNER ENGINEERING OPBT2QD POWER BLOCK OMNIB
(O4-5) 1 PARKER 4512CHXXABAA53 PNEUMATIC VALVE O4-
(U2-3) 1 PANALARM 70-FP2 PC BOARD FLASHER. U2-3.
(8010) Lot of 5 Reliance Electric Potentiometer D-18393
(6337) Efector Proximity Sensor DI100 DIA3010-ZROW 10mm
(Q2-2) 1 HONEYWELL C6097B1051 PRESSURE SWITCH Q2-2
(Q6-1) 1 NIB WHITE RODGERS 179-1 ROOM THERMOSTAT Q6-1
(8485) Agastat Timer 7012BI
(Q6-7) 1 NUMATICS I12BW400RP60V61 ISO UNIT Q6-7
(4754) Allen Bradley Sz 1 Relay 815-BOV16 Form 3RP Open
(L9) 1 CINCINNATI MILACRON 3-531-2112-A CIRCUIT BOARD L
(G1-6) 1 TYCO CKF-38-78010 TIME DELAY RELAY. G1-6.
(7554) Cutler Hammer Bus Plug Neutral Stab Assembly 110
(H8) 1 GENERAL ELECTRIC 15D21G2 ELECTRIC COIL (H8)
(Q4-2) 1 EFECTOR IN0097 PROXIMITY SWITCH Q4-2
(H12) 1 HONEYWELL BZLN-200-RH LIMIT SWITCH H12
(8382) Printronix Hammer Driver 101200-901 NWOB (8382)
(8385) Printronix Hammer Driver 101200-001 NWOB (8385)
(6527) Hoffman Enclosure w/ Push Button M-472523 Allen
(O4-4) 1 CUTLER HAMMER D15CR31E AC RELAY O4-4
(O4-4) 1 CUTLER HAMMER E29MA1 PILOT DEVICE O4-4
(L26-2) 1 CUTLER HAMMER 10250T235N PRESTEST LIGHT L
(L26-2) 1 APPLETON VGA50 MOUNTING HOOD L26-2