Research Article

Research on Simulation System for Human-SRL Collaborative Motion Planning

Algorithm 1

Human-SRL visualization algorithm (HSRLVA).
Input: Human motion capture system data dataHuman, SRL servo motor data dataSRL
Output: Display a human-SRL skeleton on a monitor terminal.
//Build a human skeleton model
(1)modHumSkeBuildHum()
//Build an SRL skeleton model
(2)modSRLSkeBuildSRL()
//Build a human-SRL skeleton model
(3)modSkeBuildHumSRL()
(4)while true do
 //Set a sampling time step
(5)stepSetStep()
 //Collect motion capture system data and servo motor data
(6)dataHumanDataColHum(dataPort1)
(7)dataSRLDataColSRL(dataPort2)
 //Decoding, encoding, and integration of the motion capture system data and the servo motor data
(8)dataDecHumDecodingHum(dataHuman, modHumSke)
(9)dataDecSRLDecodingSRL(dataSRL, modSRLSke)
(10)dataEncSRLEncodingSRL(dataDecSRL, modSRLSke)
(11)dataIntHumSRLIntegration(dataDecHum, dataEncSRL, modSke)
 //Get skeleton model node position data dataNodePos and node connection relationship data dataNodeCon
(12) (dataNodePos, dataNodeCon)←GetNodePos(modSke)
 //Visualize the human-SRL skeleton
(13)modSkeHandleVisualizing(dataNodePos, dataNodeCon, dataIntHumSRL)
(14)end while