Creates on MUJIN Controller instance. [詳細]
#include <mujincontrollerclient.h>
Public メソッド | |
virtual | ~ControllerClient () |
virtual void | SetCharacterEncoding (const std::string &newencoding)=0 |
sets the character encoding for all strings that are being input and output from the resources | |
virtual void | SetLanguage (const std::string &language)=0 |
sets the language code for all output | |
virtual const std::string & | GetUserName () const =0 |
returns the username logged into this controller | |
virtual void | SetProxy (const std::string &serverport, const std::string &userpw)=0 |
If necessary, changes the proxy to communicate to the controller server. | |
virtual void | RestartServer ()=0 |
Restarts the MUJIN Controller Server and destroys any optimizaiton jobs. | |
virtual void | Upgrade (const std::vector< unsigned char > &vdata)=0 |
Upgrade the controller with this data. | |
virtual std::string | GetVersion ()=0 |
returns the mujin controller version | |
virtual void | CancelAllJobs ()=0 |
sends the cancel message to all jobs. | |
virtual void | GetRunTimeStatuses (std::vector< JobStatus > &statuses, int options=0)=0 |
get all the run-time statuses | |
virtual void | GetScenePrimaryKeys (std::vector< std::string > &scenekeys)=0 |
gets a list of all the scene primary keys currently available to the user | |
virtual SceneResourcePtr | RegisterScene_UTF8 (const std::string &uri, const std::string &scenetype)=0 |
Register a scene to be used by the MUJIN Controller. | |
virtual SceneResourcePtr | RegisterScene_UTF8 (const std::string &uri) |
registers scene with default scene type | |
virtual SceneResourcePtr | RegisterScene_UTF16 (const std::wstring &uri, const std::string &scenetype)=0 |
virtual SceneResourcePtr | RegisterScene_UTF16 (const std::wstring &uri) |
registers scene with default scene type | |
virtual SceneResourcePtr | ImportSceneToCOLLADA_UTF8 (const std::string &sourceuri, const std::string &sourcescenetype, const std::string &newuri, bool overwrite=false)=0 |
import a scene into COLLADA format using from scene identified by a URI | |
virtual SceneResourcePtr | ImportSceneToCOLLADA_UTF16 (const std::wstring &sourceuri, const std::string &sourcescenetype, const std::wstring &newuri, bool overwrite=false)=0 |
virtual void | SyncUpload_UTF8 (const std::string &sourcefilename, const std::string &destinationdir, const std::string &scenetype)=0 |
Recommended way of uploading a scene's files into the network filesystem. | |
virtual void | SyncUpload_UTF8 (const std::string &sourcefilename, const std::string &destinationdir) |
virtual void | SyncUpload_UTF16 (const std::wstring &sourcefilename, const std::wstring &destinationdir, const std::string &scenetype)=0 |
virtual void | SyncUpload_UTF16 (const std::wstring &sourcefilename, const std::wstring &destinationdir) |
virtual void | UploadFileToController_UTF8 (const std::string &filename, const std::string &desturi)=0 |
Uploads a single file to the controller network filesystem. | |
virtual void | UploadFileToController_UTF16 (const std::wstring &filename, const std::wstring &desturi)=0 |
virtual void | UploadDataToController_UTF8 (const std::vector< unsigned char > &vdata, const std::string &desturi)=0 |
Uploads binary data to a single file on the controller network filesystem. | |
virtual void | UploadDirectoryToController_UTF8 (const std::string ©dir, const std::string &desturi)=0 |
Recursively uploads a directory to the controller network filesystem. | |
virtual void | UploadDirectoryToController_UTF16 (const std::wstring ©dir, const std::wstring &desturi)=0 |
virtual void | DownloadFileFromController_UTF8 (const std::string &desturi, std::vector< unsigned char > &vdata)=0 |
virtual void | DownloadFileFromController_UTF16 (const std::wstring &desturi, std::vector< unsigned char > &vdata)=0 |
virtual void | DownloadFileFromControllerIfModifiedSince_UTF8 (const std::string &desturi, long localtimeval, long &remotetimeval, std::vector< unsigned char > &vdata)=0 |
virtual void | DownloadFileFromControllerIfModifiedSince_UTF16 (const std::wstring &desturi, long localtimeval, long &remotetimeval, std::vector< unsigned char > &vdata)=0 |
virtual void | DeleteFileOnController_UTF8 (const std::string &uri)=0 |
Deletes a file on the controller network filesystem. | |
virtual void | DeleteFileOnController_UTF16 (const std::wstring &uri)=0 |
virtual void | DeleteDirectoryOnController_UTF8 (const std::string &uri)=0 |
Recursively deletes a directory on the controller network filesystem. | |
virtual void | DeleteDirectoryOnController_UTF16 (const std::wstring &uri)=0 |
virtual void | SetDefaultSceneType (const std::string &scenetype)=0 |
virtual const std::string & | GetDefaultSceneType ()=0 |
virtual void | SetDefaultTaskType (const std::string &tasktype)=0 |
virtual const std::string & | GetDefaultTaskType ()=0 |
virtual std::string | GetScenePrimaryKeyFromURI_UTF8 (const std::string &uri)=0 |
Get the url-encoded primary key of a scene from a scene uri (utf-8 encoded) | |
virtual std::string | GetScenePrimaryKeyFromURI_UTF16 (const std::wstring &uri)=0 |
Get the url-encoded primary key of a scene from a scene uri (utf-16 encoded) | |
virtual std::string | GetPrimaryKeyFromName_UTF8 (const std::string &name)=0 |
returns the primary key of a name | |
virtual std::string | GetPrimaryKeyFromName_UTF16 (const std::wstring &name)=0 |
returns the primary key of a name | |
virtual std::string | GetNameFromPrimaryKey_UTF8 (const std::string &pk)=0 |
returns the uncoded name from a primary key | |
virtual std::wstring | GetNameFromPrimaryKey_UTF16 (const std::string &pk)=0 |
returns the uncoded name from a primary key |
Creates on MUJIN Controller instance.
Only one call can be made at a time. In order to make multiple calls simultaneously, create another instance.
mujincontrollerclient.h の 356 行で定義されています。
|
inlinevirtual |
mujincontrollerclient.h の 359 行で定義されています。
|
pure virtual |
sends the cancel message to all jobs.
The method is non-blocking
|
pure virtual |
uri | UTF-16 encoded |
|
pure virtual |
Recursively deletes a directory on the controller network filesystem.
uri | UTF-8 encoded file in the network filesystem to delete. |
|
pure virtual |
uri | UTF-16 encoded file in the network filesystem to delete. |
|
pure virtual |
Deletes a file on the controller network filesystem.
uri | UTF-8 encoded file in the network filesystem to delete. |
|
pure virtual |
vdata | filled with the contents of the file on the controller filesystem |
|
pure virtual |
vdata | filled with the contents of the file on the controller filesystem |
|
pure virtual |
localtimeval | seconds since epoch, will use input as If-Modified-Since header |
remotetimeval | will output the modified date in response |
vdata | filled with the contents of the file on the controller filesystem |
|
pure virtual |
localtimeval | seconds since epoch, will use input as If-Modified-Since header |
remotetimeval | will output the modified date in response |
vdata | filled with the contents of the file on the controller filesystem |
|
pure virtual |
|
pure virtual |
|
pure virtual |
returns the uncoded name from a primary key
|
pure virtual |
returns the uncoded name from a primary key
|
pure virtual |
returns the primary key of a name
name | utf-16 encoded |
|
pure virtual |
returns the primary key of a name
name | utf-8 encoded |
|
pure virtual |
get all the run-time statuses
options | if options is 1, also get the message |
|
pure virtual |
Get the url-encoded primary key of a scene from a scene uri (utf-16 encoded)
If input URL is L"mujin:/\u691c\u8a3c\u52d5\u4f5c_121122.mujin.dae" Return value will be: "%E6%A4%9C%E8%A8%BC%E5%8B%95%E4%BD%9C_121122"
uri | utf-16 encoded URI |
|
pure virtual |
Get the url-encoded primary key of a scene from a scene uri (utf-8 encoded)
For example, the URI
mujin:/検証動作_121122.mujin.dae
is represented as:
"mujin:/\xe6\xa4\x9c\xe8\xa8\xbc\xe5\x8b\x95\xe4\xbd\x9c_121122.mujin.dae"
Return value will be: "%E6%A4%9C%E8%A8%BC%E5%8B%95%E4%BD%9C_121122"
uri | utf-8 encoded URI |
|
pure virtual |
gets a list of all the scene primary keys currently available to the user
|
pure virtual |
returns the username logged into this controller
|
pure virtual |
returns the mujin controller version
|
pure virtual |
sourceuri | utf-16 encoded |
newuri | utf-16 encoded |
|
pure virtual |
import a scene into COLLADA format using from scene identified by a URI
sourceuri | URL-encoded UTF-8 original URI to import from. For MUJIN network files use mujin:/mypath/myfile.ext |
sourcescenetype | The format of the source file. Can be:
|
newuri | UTF-8 encoded new URI to save the imported results. Default is to save to MUJIN COLLADA, so end with .mujin.dae . Use mujin:/mypath/myfile.mujin.dae |
overwrite | if true, will overwrite any existing scenes at newuri with the new scene. |
|
pure virtual |
uri | utf-16 encoded URI |
|
inlinevirtual |
registers scene with default scene type
mujincontrollerclient.h の 447 行で定義されています。
|
pure virtual |
Register a scene to be used by the MUJIN Controller.
uri | utf-8 encoded URI of the file on the MUJIN Controller to import. Usually starts with mujin:/ |
scenetype | The format of the source file. Can be:
|
|
inlinevirtual |
registers scene with default scene type
mujincontrollerclient.h の 436 行で定義されています。
|
pure virtual |
Restarts the MUJIN Controller Server and destroys any optimizaiton jobs.
If the server is not responding, call this method to clear the server state and initialize everything. The method is blocking, when it returns the MUJIN Controller would have been restarted.
|
pure virtual |
sets the character encoding for all strings that are being input and output from the resources
The default character encoding is utf-8, can also set it to Shift_JIS for windows japanese unicode, iso-2022-jp List of possible sets: http://www.iana.org/assignments/character-sets/character-sets.xml
|
pure virtual |
|
pure virtual |
|
pure virtual |
sets the language code for all output
Check out http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
|
pure virtual |
If necessary, changes the proxy to communicate to the controller server.
serverport | Specify proxy server to use. To specify port number in this string, append :[port] to the end of the host name. The proxy string may be prefixed with [protocol]:// since any such prefix will be ignored. The proxy's port number may optionally be specified with the separate option. If not specified, will default to using port 1080 for proxies. Setting to empty string will disable the proxy. |
userpw | If non-empty, [user name]:[password] to use for the connection to the HTTP proxy. |
|
pure virtual |
sourcefilename | UTF-16 encoded. For Windows systems, the \ path separator has to be used. For Unix systems, the / path separator has to be used. |
destinationdir | UTF-16 encoded |
scenetype | UTF-16 encoded |
|
inlinevirtual |
mujincontrollerclient.h の 498 行で定義されています。
|
pure virtual |
Recommended way of uploading a scene's files into the network filesystem.
Depending on the scenetype, can upload entire directory trees.
sourcefilename | UTF-8 encoded local filesystem location of the top-level file. If the scenetype requires many files, will upload all of them. For Windows systems, the \ path separator has to be used. For Unix systems, the / path separator has to be used. |
destinationdir | UTF-8 encoded destination folder in the network file system. Should always have trailing slash. By default prefix with "mujin:/". Use the / separator for different paths. |
scenetype | UTF-8 encoded type of scene uploading. |
mujin_exception | if the upload fails, will throw an exception |
|
inlinevirtual |
mujincontrollerclient.h の 485 行で定義されています。
|
pure virtual |
Upgrade the controller with this data.
|
pure virtual |
Uploads binary data to a single file on the controller network filesystem.
Overwrites the destination uri if it already exists
data | binary data to upload to the uri |
desturi | UTF-8 encoded destination file in the network filesystem. By default prefix with "mujin:/". Use the / separator for different paths. |
|
pure virtual |
copydir | is utf-16 encoded |
desturi | UTF-16 encoded |
|
pure virtual |
Recursively uploads a directory to the controller network filesystem.
Creates directories along the way if they don't exist. By default, overwrites all the files
copydir | is utf-8 encoded. Cannot have trailing slashes '/', '\' |
desturi | UTF-8 encoded destination file in the network filesystem. If it has a trailing slash, then copydir is inside that URL. If there is no trailing slash, the copydir directory is renamed to the URI. By default prefix with "mujin:/". Use the / separator for different paths. |
|
pure virtual |
filename | utf-16 encoded |
desturi | UTF-16 encoded |
|
pure virtual |
Uploads a single file to the controller network filesystem.
Overwrites the file if it already exists
filename | utf-8 encoded path of the file on the system |
desturi | UTF-8 encoded destination file in the network filesystem. By default prefix with "mujin:/". Use the / separator for different paths. |