mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
Minor fixes on roslib typings. (#22733)
* Added missing function definition for Goal 'on'. The 'on' function is necessary to connect callback functions to events from ROS action goal 'timeout', 'status', 'feedback', 'result'. * Increased version number after minor extension * Changed datatype of 'end' param in to 'number'. The end time should be also transmitted as a number in seconds like time t. * Increased version number after minor fix.
This commit is contained in:
12
types/roslib/index.d.ts
vendored
12
types/roslib/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for roslib.js 0.18.0
|
||||
// Type definitions for roslib.js 0.18.2
|
||||
// Project: http://wiki.ros.org/roslibjs
|
||||
// Definitions by: Stefan Profanter <https://github.com/Pro>, Cooper Benson <https://github.com/skycoop>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -58,7 +58,7 @@ declare namespace ROSLIB {
|
||||
* @param level - User level as a string given by the client.
|
||||
* @param end - End time of the client's session.
|
||||
*/
|
||||
authenticate(mac:string, client:string, dest:string, rand:string, t:number, level:string, end:string):void;
|
||||
authenticate(mac:string, client:string, dest:string, rand:string, t:number, level:string, end:number):void;
|
||||
|
||||
|
||||
/**
|
||||
@@ -417,6 +417,14 @@ declare namespace ROSLIB {
|
||||
goalMessage: any
|
||||
});
|
||||
|
||||
/**
|
||||
* Connect callback functions to goal based events
|
||||
*
|
||||
* @param eventName Name of event ('timeout', 'status', 'feedback', 'result')
|
||||
* @param callback Callback function executed on connected event
|
||||
*/
|
||||
on(eventName:string, callback:(event:any) => void):void;
|
||||
|
||||
/**
|
||||
* Send the goal to the action server.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user