10.VREP的API函数大全5

目录

 

41.矩阵操作和转换

42.信息收发

43.用户参数

44.信号

45.静态数据

46.自定义数据区

47.贴图

48.阻塞(仅线程脚本可用)

49.控制台命令

50.导入/导出


41.矩阵操作和转换

sim.buildIdentityMatrix (Lua)                          simBuildIdentityMatrix (C/C++)

sim.buildMatrix (Lua)                                  simBuildMatrix (C/C++)

sim.buildMatrixQ (Lua)                                 simBuildMatrixQ (C/C++)

sim.copyMatrix (Lua)                                   simCopyMatrix (C/C++)

sim.getEulerAnglesFromMatrix (Lua)                     simGetEulerAnglesFromMatrix (C/C++)

sim.getQuaternionFromMatrix (Lua)                      simGetQuaternionFromMatrix (C/C++)

sim.multiplyMatrices (Lua)                             simMultiplyMatrices (C/C++)

sim.interpolateMatrices (Lua)                          simInterpolateMatrices (C/C++)

sim.invertMatrix (Lua)                                 simInvertMatrix (C/C++)

sim.getObjectMatrix (Lua)                              simGetObjectMatrix (C/C++)

sim.setObjectMatrix (Lua)                              simSetObjectMatrix (C/C++)

sim.getObjectPosition (Lua)                            simGetObjectPosition (C/C++)

sim.setObjectPosition (Lua)                            simSetObjectPosition (C/C++)

sim.getObjectOrientation (Lua)                         simGetObjectOrientation (C/C++)

sim.setObjectOrientation (Lua)                         simSetObjectOrientation (C/C++)

sim.getObjectQuaternion (Lua)                          simGetObjectQuaternion (C/C++)

sim.setObjectQuaternion (Lua)                          simSetObjectQuaternion (C/C++)

sim.setSphericalJointMatrix (Lua)                      simSetSphericalJointMatrix (C/C++)

sim.getJointMatrix (Lua)                               simGetJointMatrix (C/C++)

sim.multiplyVector (Lua)

                                                       simTransformVector (C/C++)

sim.getRotationAxis (Lua)                              simGetRotationAxis (C/C++)

sim.rotateAroundAxis (Lua)                             simRotateAroundAxis (C/C++)

sim.getObjectVelocity (Lua)                            simGetObjectVelocity (C/C++)

sim.reorientShapeBoundingBox (Lua)                     simReorientShapeBoundingBox (C/C++)

 

42.信息收发

sim.displayDialog (Lua)                                simDisplayDialog (C/C++)

sim.getDialogInput (Lua)                               simGetDialogInput (C/C++)

sim.getDialogResult (Lua)                              simGetDialogResult (C/C++)

sim.endDialog (Lua)                                    simEndDialog (C/C++)

                                                       simSetLastError (C/C++)

sim.addStatusbarMessage (Lua)                          simAddStatusbarMessage (C/C++)

sim.loadModule (Lua)                                   simLoadModule (C/C++)

                                                       simSendModuleMessage (C/C++)

sim.unloadModule (Lua)                                 simUnloadModule (C/C++)

                                                       simBroadcastMessage (C/C++)

sim.getSimulatorMessage (Lua)                          simGetSimulatorMessage (C/C++)

                                                       simSetScriptRawBuffer (C/C++)

                                                       simGetScriptRawBuffer (C/C++)

                                                       simReleaseScriptRawBuffer (C/C++)

sim.sendData (Lua)                                     simSendData (C/C++)

sim.receiveData (Lua)                                  simReceiveData (C/C++)

sim.serialCheck (Lua)                                  simSerialCheck (C/C++)

sim.serialClose (Lua)                                  simSerialClose (C/C++)

sim.serialOpen (Lua)                                   simSerialOpen (C/C++)

sim.serialRead (Lua)                                   simSerialRead (C/C++)

sim.serialSend (Lua)                                   simSerialSend (C/C++)

sim.tubeClose (Lua)                                    simTubeClose (C/C++)

sim.tubeOpen (Lua)                                     simTubeOpen (C/C++)

sim.tubeRead (Lua)                                     simTubeRead (C/C++)

sim.tubeStatus (Lua)                                   simTubeStatus (C/C++)

sim.tubeWrite (Lua)                                    simTubeWrite (C/C++)

sim.setIntegerSignal (Lua)                             simSetIntegerSignal (C/C++)

sim.getIntegerSignal (Lua)                             simGetIntegerSignal (C/C++)

sim.clearIntegerSignal (Lua)                           simClearIntegerSignal (C/C++)

sim.setDoubleSignal (Lua)                              simSetDoubleSignal (C/C++)

sim.getDoubleSignal (Lua)                              simGetDoubleSignal (C/C++)

sim.clearDoubleSignal (Lua)                            simClearDoubleSignal (C/C++)

sim.setStringSignal (Lua)                              simSetStringSignal (C/C++)

sim.getStringSignal (Lua)                              simGetStringSignal (C/C++)

sim.clearStringSignal (Lua)                            simClearStringSignal (C/C++)

sim.getSignalName (Lua)                                simGetSignalName (C/C++)

sim.waitForSignal (Lua)

sim.auxiliaryConsoleClose (Lua)                        simAuxiliaryConsoleClose (C/C++)

sim.auxiliaryConsoleOpen (Lua)                         simAuxiliaryConsoleOpen (C/C++)

sim.auxiliaryConsolePrint (Lua)                        simAuxiliaryConsolePrint (C/C++)

sim.persistentDataRead (Lua)                           simPersistentDataRead (C/C++)

sim.persistentDataWrite (Lua)                          simPersistentDataWrite (C/C++)

sim.getPersistentDataTags (Lua)                        simGetPersistentDataTags (C/C++)

sim.getMatchingPersistentDataTags (Lua)

                                                       simEnableEventCallback (C/C++)

sim.callScriptFunction (Lua)

                                                       simCallScriptFunctionEx (C/C++)

sim.executeScriptString (Lua)                          simExecuteScriptString (C/C++)

sim.setScriptVariable (Lua)                            simSetScriptVariable (C/C++)

 

43.用户参数

sim.setUserParameter (Lua)                             simSetUserParameter (C/C++)

sim.getUserParameter (Lua)                             simGetUserParameter (C/C++)

 

44.信号

sim.setIntegerSignal (Lua)                             simSetIntegerSignal (C/C++)

sim.getIntegerSignal (Lua)                             simGetIntegerSignal (C/C++)

sim.clearIntegerSignal (Lua)                           simClearIntegerSignal (C/C++)

sim.setDoubleSignal (Lua)                              simSetDoubleSignal (C/C++)

sim.getDoubleSignal (Lua)                              simGetDoubleSignal (C/C++)

sim.clearDoubleSignal (Lua)                            simClearDoubleSignal (C/C++)

sim.setStringSignal (Lua)                              simSetStringSignal (C/C++)

sim.getStringSignal (Lua)                              simGetStringSignal (C/C++)

sim.clearStringSignal (Lua)                            simClearStringSignal (C/C++)

sim.getSignalName (Lua)                                simGetSignalName (C/C++)

sim.waitForSignal (Lua)

 

45.静态数据

sim.persistentDataRead (Lua)                           simPersistentDataRead (C/C++)

sim.persistentDataWrite (Lua)                          simPersistentDataWrite (C/C++)

sim.getPersistentDataTags (Lua)                        simGetPersistentDataTags (C/C++)

sim.getMatchingPersistentDataTags (Lua)

 

46.自定义数据区

sim.readCustomDataBlock (Lua)                          simReadCustomDataBlock (C/C++)

sim.readCustomDataBlockTags (Lua)                      simReadCustomDataBlockTags (C/C++)

sim.writeCustomDataBlock (Lua)                         simWriteCustomDataBlock (C/C++)

sim.packUInt8Table (Lua)

sim.packDoubleTable (Lua)

sim.packFloatTable (Lua)

sim.packInt32Table (Lua)

sim.packUInt32Table (Lua)

sim.packUInt16Table (Lua)

sim.packTable (Lua)                                    simPackTable (C/C++)

sim.unpackUInt8Table (Lua)

sim.unpackDoubleTable (Lua)

sim.unpackFloatTable (Lua)

sim.unpackInt32Table (Lua)

sim.unpackUInt32Table (Lua)

sim.unpackUInt16Table (Lua)

sim.unpackTable (Lua)                                  simUnpackTable (C/C++)

sim.transformBuffer (Lua)

sim.setReferencedHandles (Lua)                         simSetReferencedHandles (C/C++)

sim.getReferencedHandles (Lua)                         simGetReferencedHandles (C/C++)

 

47.贴图

                                                       simApplyTexture (C/C++)

sim.getTextureId (Lua)                                 simGetTextureId (C/C++)

sim.getShapeTextureId (Lua)                            simGetShapeTextureId (C/C++)

sim.readTexture (Lua)                                  simReadTexture (C/C++)

sim.saveImage (Lua)                                    simSaveImage (C/C++)

sim.loadImage (Lua)                                    simLoadImage (C/C++)

sim.getScaledImage (Lua)                               simGetScaledImage (C/C++)

sim.transformImage (Lua)                               simTransformImage (C/C++)

sim.writeTexture (Lua)                                 simWriteTexture (C/C++)

sim.createTexture (Lua)                                simCreateTexture (C/C++)

sim.setShapeTexture (Lua)                              simSetShapeTexture (C/C++)

 

48.阻塞(仅线程脚本可用)

sim.wait (Lua)

sim.waitForSignal (Lua)

sim.rmlMoveToJointPositions (Lua)

sim.rmlMoveToPosition (Lua)

sim.moveToObject (Lua)

sim.followPath (Lua)

sim.displayDialog (Lua)                                simDisplayDialog (C/C++)

sim.serialRead (Lua)                                   simSerialRead (C/C++)

sim.tubeRead (Lua)                                     simTubeRead (C/C++)

 

49.控制台命令

sim.auxiliaryConsoleClose (Lua)                        simAuxiliaryConsoleClose (C/C++)

sim.auxiliaryConsoleOpen (Lua)                         simAuxiliaryConsoleOpen (C/C++)

sim.auxiliaryConsolePrint (Lua)                        simAuxiliaryConsolePrint (C/C++)

sim.auxiliaryConsoleShow (Lua)                         simAuxiliaryConsoleShow (C/C++)

 

50.导入/导出

sim.importShape (Lua)                                  simImportShape (C/C++)

sim.importMesh (Lua)                                   simImportMesh (C/C++)

sim.exportMesh (Lua)                                   simExportMesh (C/C++)

sim.exportIk (Lua)                                     simExportIk (C/C++)

sim.createTexture (Lua)                                simCreateTexture (C/C++)

sim.saveImage (Lua)                                    simSaveImage (C/C++)

posted @ 2020-12-19 16:51  秋风不识春  阅读(581)  评论(0编辑  收藏  举报