Ricompilazione con nuovo nodo TF broadcaster

This commit is contained in:
2019-11-14 17:08:39 +01:00
parent c9108aaa54
commit a3f75e5449
55 changed files with 11305 additions and 2 deletions

View File

@@ -0,0 +1,256 @@
// Auto-generated. Do not edit!
// (in-package ur_msgs.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteLength = _ros_msg_utils.getByteLength;
//-----------------------------------------------------------
//-----------------------------------------------------------
class SetIORequest {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.fun = null;
this.pin = null;
this.state = null;
}
else {
if (initObj.hasOwnProperty('fun')) {
this.fun = initObj.fun
}
else {
this.fun = 0;
}
if (initObj.hasOwnProperty('pin')) {
this.pin = initObj.pin
}
else {
this.pin = 0;
}
if (initObj.hasOwnProperty('state')) {
this.state = initObj.state
}
else {
this.state = 0.0;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetIORequest
// Serialize message field [fun]
bufferOffset = _serializer.int8(obj.fun, buffer, bufferOffset);
// Serialize message field [pin]
bufferOffset = _serializer.int8(obj.pin, buffer, bufferOffset);
// Serialize message field [state]
bufferOffset = _serializer.float32(obj.state, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetIORequest
let len;
let data = new SetIORequest(null);
// Deserialize message field [fun]
data.fun = _deserializer.int8(buffer, bufferOffset);
// Deserialize message field [pin]
data.pin = _deserializer.int8(buffer, bufferOffset);
// Deserialize message field [state]
data.state = _deserializer.float32(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 6;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetIORequest';
}
static md5sum() {
//Returns md5sum for a message object
return '85200c86fbe60ea3e047bae3d6574bfd';
}
static messageDefinition() {
// Returns full string definition for message
return `
int8 FUN_SET_DIGITAL_OUT = 1
int8 FUN_SET_FLAG = 2
int8 FUN_SET_ANALOG_OUT = 3
int8 FUN_SET_TOOL_VOLTAGE = 4
int8 STATE_OFF = 0
int8 STATE_ON = 1
int8 STATE_TOOL_VOLTAGE_0V = 0
int8 STATE_TOOL_VOLTAGE_12V = 12
int8 STATE_TOOL_VOLTAGE_24V = 24
int8 fun
int8 pin
float32 state
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetIORequest(null);
if (msg.fun !== undefined) {
resolved.fun = msg.fun;
}
else {
resolved.fun = 0
}
if (msg.pin !== undefined) {
resolved.pin = msg.pin;
}
else {
resolved.pin = 0
}
if (msg.state !== undefined) {
resolved.state = msg.state;
}
else {
resolved.state = 0.0
}
return resolved;
}
};
// Constants for message
SetIORequest.Constants = {
FUN_SET_DIGITAL_OUT: 1,
FUN_SET_FLAG: 2,
FUN_SET_ANALOG_OUT: 3,
FUN_SET_TOOL_VOLTAGE: 4,
STATE_OFF: 0,
STATE_ON: 1,
STATE_TOOL_VOLTAGE_0V: 0,
STATE_TOOL_VOLTAGE_12V: 12,
STATE_TOOL_VOLTAGE_24V: 24,
}
class SetIOResponse {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.success = null;
}
else {
if (initObj.hasOwnProperty('success')) {
this.success = initObj.success
}
else {
this.success = false;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetIOResponse
// Serialize message field [success]
bufferOffset = _serializer.bool(obj.success, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetIOResponse
let len;
let data = new SetIOResponse(null);
// Deserialize message field [success]
data.success = _deserializer.bool(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 1;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetIOResponse';
}
static md5sum() {
//Returns md5sum for a message object
return '358e233cde0c8a8bcfea4ce193f8fc15';
}
static messageDefinition() {
// Returns full string definition for message
return `
bool success
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetIOResponse(null);
if (msg.success !== undefined) {
resolved.success = msg.success;
}
else {
resolved.success = false
}
return resolved;
}
};
module.exports = {
Request: SetIORequest,
Response: SetIOResponse,
md5sum() { return 'e1b580ccf43a938f2efbbb98bbe3e277'; },
datatype() { return 'ur_msgs/SetIO'; }
};

View File

@@ -0,0 +1,168 @@
// Auto-generated. Do not edit!
// (in-package ur_msgs.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteLength = _ros_msg_utils.getByteLength;
//-----------------------------------------------------------
//-----------------------------------------------------------
class SetPayloadRequest {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.payload = null;
}
else {
if (initObj.hasOwnProperty('payload')) {
this.payload = initObj.payload
}
else {
this.payload = 0.0;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetPayloadRequest
// Serialize message field [payload]
bufferOffset = _serializer.float32(obj.payload, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetPayloadRequest
let len;
let data = new SetPayloadRequest(null);
// Deserialize message field [payload]
data.payload = _deserializer.float32(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 4;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetPayloadRequest';
}
static md5sum() {
//Returns md5sum for a message object
return 'd12269f931817591aa52047629ca66ca';
}
static messageDefinition() {
// Returns full string definition for message
return `
float32 payload
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetPayloadRequest(null);
if (msg.payload !== undefined) {
resolved.payload = msg.payload;
}
else {
resolved.payload = 0.0
}
return resolved;
}
};
class SetPayloadResponse {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.success = null;
}
else {
if (initObj.hasOwnProperty('success')) {
this.success = initObj.success
}
else {
this.success = false;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetPayloadResponse
// Serialize message field [success]
bufferOffset = _serializer.bool(obj.success, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetPayloadResponse
let len;
let data = new SetPayloadResponse(null);
// Deserialize message field [success]
data.success = _deserializer.bool(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 1;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetPayloadResponse';
}
static md5sum() {
//Returns md5sum for a message object
return '358e233cde0c8a8bcfea4ce193f8fc15';
}
static messageDefinition() {
// Returns full string definition for message
return `
bool success
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetPayloadResponse(null);
if (msg.success !== undefined) {
resolved.success = msg.success;
}
else {
resolved.success = false
}
return resolved;
}
};
module.exports = {
Request: SetPayloadRequest,
Response: SetPayloadResponse,
md5sum() { return '7f12eb632882cb73e5721178d0073e39'; },
datatype() { return 'ur_msgs/SetPayload'; }
};

View File

@@ -0,0 +1,173 @@
// Auto-generated. Do not edit!
// (in-package ur_msgs.srv)
"use strict";
const _serializer = _ros_msg_utils.Serialize;
const _arraySerializer = _serializer.Array;
const _deserializer = _ros_msg_utils.Deserialize;
const _arrayDeserializer = _deserializer.Array;
const _finder = _ros_msg_utils.Find;
const _getByteLength = _ros_msg_utils.getByteLength;
//-----------------------------------------------------------
//-----------------------------------------------------------
class SetSpeedSliderFractionRequest {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.speed_slider_fraction = null;
}
else {
if (initObj.hasOwnProperty('speed_slider_fraction')) {
this.speed_slider_fraction = initObj.speed_slider_fraction
}
else {
this.speed_slider_fraction = 0.0;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetSpeedSliderFractionRequest
// Serialize message field [speed_slider_fraction]
bufferOffset = _serializer.float64(obj.speed_slider_fraction, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetSpeedSliderFractionRequest
let len;
let data = new SetSpeedSliderFractionRequest(null);
// Deserialize message field [speed_slider_fraction]
data.speed_slider_fraction = _deserializer.float64(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 8;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetSpeedSliderFractionRequest';
}
static md5sum() {
//Returns md5sum for a message object
return '64134244ab4dfc72a3406fe06d580274';
}
static messageDefinition() {
// Returns full string definition for message
return `
float64 speed_slider_fraction
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetSpeedSliderFractionRequest(null);
if (msg.speed_slider_fraction !== undefined) {
resolved.speed_slider_fraction = msg.speed_slider_fraction;
}
else {
resolved.speed_slider_fraction = 0.0
}
return resolved;
}
};
class SetSpeedSliderFractionResponse {
constructor(initObj={}) {
if (initObj === null) {
// initObj === null is a special case for deserialization where we don't initialize fields
this.success = null;
}
else {
if (initObj.hasOwnProperty('success')) {
this.success = initObj.success
}
else {
this.success = false;
}
}
}
static serialize(obj, buffer, bufferOffset) {
// Serializes a message object of type SetSpeedSliderFractionResponse
// Serialize message field [success]
bufferOffset = _serializer.bool(obj.success, buffer, bufferOffset);
return bufferOffset;
}
static deserialize(buffer, bufferOffset=[0]) {
//deserializes a message object of type SetSpeedSliderFractionResponse
let len;
let data = new SetSpeedSliderFractionResponse(null);
// Deserialize message field [success]
data.success = _deserializer.bool(buffer, bufferOffset);
return data;
}
static getMessageSize(object) {
return 1;
}
static datatype() {
// Returns string type for a service object
return 'ur_msgs/SetSpeedSliderFractionResponse';
}
static md5sum() {
//Returns md5sum for a message object
return '358e233cde0c8a8bcfea4ce193f8fc15';
}
static messageDefinition() {
// Returns full string definition for message
return `
bool success
`;
}
static Resolve(msg) {
// deep-construct a valid message object instance of whatever was passed in
if (typeof msg !== 'object' || msg === null) {
msg = {};
}
const resolved = new SetSpeedSliderFractionResponse(null);
if (msg.success !== undefined) {
resolved.success = msg.success;
}
else {
resolved.success = false
}
return resolved;
}
};
module.exports = {
Request: SetSpeedSliderFractionRequest,
Response: SetSpeedSliderFractionResponse,
md5sum() { return '172aeb6c49379a44cf68480fa5bfad3c'; },
datatype() { return 'ur_msgs/SetSpeedSliderFraction'; }
};