# US 2010/0168912 A1 · Method of invoking asynchronous function for controlling robots

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0168912 A1
- Document ID: US20100168912A1
- Status: Published application
- Kind: A1
- Application number: 12/647,832
- Filed: 2009-12-28
- Published: 2010-07-01
- Earliest claimed: 2008-12-29
- Assignees: Electronics and Telecommunications Research Institute
- Inventors: Kangwoo LEE; Hyoungsun KIM
- Web page: https://patentgrep.com/patent/US20100168912A1

## CPC

- G06F 11/0766: {Error or fault reporting or storing}
- G06F 11/0736: {in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function (testing or monitoring of automated control systems G05B23/02)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of invoking an asynchronous function includes: requesting asynchronous operation performance according to the asynchronous function invoking; immediately transferring results according to the request of the asynchronous operation performance and returning a control object that can control the asynchronous operation performance of the corresponding asynchronous function; confirming the performance state of the asynchronous operation through the returned control object and confirming whether the state can be cancelled; if it is determined that the performance state of the asynchronous operation can be cancelled, confirming whether a forced cancellation request is requested; and if it is determined that the forced cancellation request is received, forcibly cancelling the asynchronous operation performance.

## Claims

### Claim 1

A method of invoking an asynchronous function for controlling robots, comprising:
requesting asynchronous operation performance according to the asynchronous function invoking;
immediately transferring results according to the request of the asynchronous operation performance and returning a control object that can control the asynchronous operation performance of the corresponding asynchronous function;
confirming the performance state of the asynchronous operation through the returned control object and confirming whether the state can be cancelled;
if it is determined that the performance state of the asynchronous operation can be cancelled, confirming whether a forced cancellation request is requested; and
if it is determined that the forced cancellation request is received, forcibly cancelling the asynchronous operation performance.

### Claim 2 (depends on 1)

The method of invoking an asynchronous function according to claim 1, further comprising obtaining the result values of the asynchronous operation performance through the returned control object to provide them to a caller when the forced cancellation request is not received.

### Claim 3 (depends on 2)

The method of invoking an asynchronous function according to claim 2, further comprising determining a cause of errors that occur during the asynchronous operation performance by using the result values of the asynchronous operation performance.

### Claim 4 (depends on 2)

The method of invoking an asynchronous function according to claim 2, wherein the obtaining the result values of the asynchronous operation performance waits until the asynchronous operation performance ends when the asynchronous operation performance does not end and then obtains the result values of the asynchronous operation performance.

### Claim 5 (depends on 1)

The method of invoking an asynchronous function according to claim 1, wherein the confirming of the performance state of the asynchronous operation confirms the performance state of the asynchronous operation by a polling scheme using the returned control object.

### Claim 6 (depends on 5)

The method of invoking an asynchronous function according to claim 5, wherein the confirming of the performance state of the asynchronous operation confirms at least one of whether the invoked asynchronous function starts, whether the invoked asynchronous function is successfully completed, whether the invoked asynchronous function stops due to the error that occurs during the performance, and whether the invoked asynchronous function is forcibly cancelled.

### Claim 7 (depends on 1)

The method of invoking an asynchronous function according to claim 1, wherein the confirming of the performance state of the asynchronous operation confirms the performance state of the asynchronous operation by a callback scheme using the returned control object.

### Claim 8 (depends on 1)

The method of invoking an asynchronous function according to claim 1, wherein the forcibly cancelling the asynchronous operation performance receives a cancellation reason from a forced cancellation requestor, which requests the forced cancellation, as a character string to perform the cancellation processing.
