聯(lián)系人:藍艷萍
手機:15359298293
QQ:2259678687
郵箱:lanlan@szcxdcs.com
地址:深圳市寶安區(qū)西鄉(xiāng)街道臣田社區(qū)寶民二路東方雅苑2層B39
BENTLY 1X35668 MADEEXCLUSIVELYBY |
BENTLY 1X35668 MADEEXCLUSIVELYBY |
$ 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ā)布許多訊息,好讓伺服機轉到目標角度之前慢慢加速,再慢慢延遲旋轉。當訊息抵達「/head/tilt/smooth」時一定會呼叫「moveServo_cb」。這個回調函式會從-90到+90度之間每10度產(chǎn)生1個數(shù)值,追加到角度數(shù)組當中。「sin()」會取這個角度,數(shù)值從-1到+1慢慢增加。該數(shù)值加1之后,范圍就會變成0到+2,再除以2之后, 0到+1的曲線數(shù)值數(shù)組就完成了。然后再看看m數(shù)組當中,每當發(fā)布訊息時,就會稍微前進一點,范圍在r之內(nèi),直到1*r或是全范圍為止。
#!/usr/bin/env python
from time import sleep
import numpy as np
import rospy
pos = currentPosition + mi*r
print “pos: “, pos
pub.publish(pos)
sleep(0.05)
currentPosition = targetPosition
print “pos-e: “, currentPosition
pub.publish(currentPosition)
def listener():
if __name__ == ‘__main__’:
listener()
想要測試伺服機順暢的動作,就要啟動Python腳本,將訊息發(fā)布到「/head/tilt/smooth」,這樣一來即可檢視順暢的動作。
$ ./servoencoder.py
$ rostopic pub -1 /head/tilt/smoothstd_msgs/Float32 1
$ rostopic pub -1 /head/tilt/smoothstd_msgs/Float32 0
ROS當中的名稱也可以重新測繪。只要將「/head/tilt/smooth」重新測繪為「/head/tilt」,程序就能向伺服機發(fā)出命令,而不會意識到正弦曲線的數(shù)值在變化。
Ecosys Novapure Resin Tank C3-0YN-C6-K2-H2 new
Ecosys Novapure S447D Scrubber Tank C5-YY0-B5-D5-NN new
AMAT IECP Main AC Cabinet 0190-01661 untested
Takatori ATRM-2100 Delaminator Tape Remover Working
Edwards iXH610 Dry Vacuum Pump AC1102121100 as-is
ATMI Ecosys CDO 862 Abatement Scrubber System untested ...
TEL Fujikin Water Vapor Gen. Controller WVG-S2-Y-IB7 Ne...
TEL Fujikin Water Vapor Generator WVG-S2-Y-IB4 New
TEL Fujikin Water Vapor Generator WVG-S2-Y-IB7 New
ENI Spectrum B-5002 5kW RF Generator 0190-15320 Working
Nor-Cal Intellisys TPV-800 Pendulum Valve 0190-25400
Materials Research Eclipse Star Chamber Assy. A119124
MRC Eclipse Star Chamber Assy. A120946
CTI-Cryogenics On-Board 8 Cryopump 8116232G001 new 3620...
Daikin ACRO Brine Chilling Unit UBRP4CTH-IN untested 3D...
SemVision X Y Axis Table Stage Working
Hitachi S-9300 SEM Transfer Robot working
KLA-Tencor AIT 2 Measurement Head 0021726-001 working
MRC Eclipse RMX Magnet Assy. A119182 RD working
MRC Eclipse RMA Magnet Assy. A126387 working
Brooks Genus Left Vacuum Load Lock 001-9200-54 working
TEL ACT 12 WEE X-Theta Drive Assy 200mm working
Pfeiffer Vacuum OnTool Dry Pump PKT16919 new
Pfeiffer WKP 6000 AM Dry Vacuum Pump Blower New
Applied Materials AMAT Quantum BeamLine Flight Tube 901...
KLA Tencor SP1 Power Module 0000452-004 Rev. AB Used Wo...
Lam Research 852-014681-583 RF Cart 851-014680-583 no G...
AMAT Applied Materials 0290-76088 P5000 Remote AC Box R...
SVG 90S Fluid Temperature Controller Noah Precision Bat...
Applied Materials STD PVD Degas Chamber Quartz Viewpoin...
Quartz International 03MRK001 Quartz Element Tube new
ATS M-Pak Temp. Control System Chiller MP40B-GL as-is 4...
Thermo Electron Neslab DI Max DEI Water to Water Cooler
Edwards Vacuum Turbopump STP-XH2603P Used Working
Edwards Vacuum Pump IQDP-40 Rebuilt working
ASML Stepper A1208 Digital Focus PCB 859-0743-018
Semitool Wet Solvent Stripper WST308A(1CC)BT
TEL Eclipse Star Shield Kit 42755-0500 new
Comdel CX-600S Ultra Stable 13.56MHz RF Generator CX-60...
Neslab CFT-300 Refrigerated Recirculator Chiller 396105...
Shimadzu TMP Vacuum Turbopump TMP-3203LMC-K1
Shimadzu Vacuum Turbopump TMP-3203LMC-K1 VG300