Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!

function threadFunction()
local maxVelocity=45*math.pi/180 -- rad/s
local maxAcceleration=40*math.pi/180 -- rad/s^2
local maxJerk=80*math.pi/180 -- rad/s^3
local maxTorque=10 -- kg*m^2/s^2
initialize(maxVelocity,maxAcceleration,maxJerk,maxTorque)
while simGetSimulationState()~=sim_simulation_advancing_abouttostop do
enableSuctionCup(false)
-- Synchronous operation of the individual joints:
moveToPosition({180*math.pi/180,59*math.pi/180,84*math.pi/180,180*math.pi/180},true)
moveToPosition({180*math.pi/180,52.5*math.pi/180,84*math.pi/180,180*math.pi/180},true)
enableSuctionCup(true)
moveToPosition({180*math.pi/180,59*math.pi/180,84*math.pi/180,180*math.pi/180},true)
moveToPosition({90*math.pi/180,104*math.pi/180,60*math.pi/180,90*math.pi/180},true)
-- Asynchronous operation of the individual joints:
moveToPosition({180*math.pi/180,59*math.pi/180,84*math.pi/180,180*math.pi/180},false)
moveToPosition({180*math.pi/180,52.5*math.pi/180,84*math.pi/180,180*math.pi/180},true)
enableSuctionCup(false)
moveToPosition({180*math.pi/180,59*math.pi/180,84*math.pi/180,180*math.pi/180},true)
moveToPosition({90*math.pi/180,104*math.pi/180,60*math.pi/180,90*math.pi/180},false)
end
end
Настольная робо-рука манипулятор из оргстекла на сервоприводах своими руками или реверс-инжиниринг uArm