Compare commits

...

47 Commits

Author SHA1 Message Date
02fce8a892 I nodi non sono segnati come Required
Spegnimento grafecul attraverso interfaccia
2019-11-19 09:21:38 +01:00
ba5ed10349 Modifica angoli RPY per tenere utensile perpendicolare al terreno 2019-11-19 09:20:45 +01:00
dde6d1e083 Recorder continua a crashare a caso quando si apre file con plot 2019-11-15 17:01:45 +01:00
73ab44a67e Aggiunti messaggi di debug ai nodi
Crash di Recorder quando si cerca di plottare un percorso, il problema
sta negli strumenti rViz, debug necessario
2019-11-15 16:45:29 +01:00
aef477e8e5 Crash alla partenza del nodo brodcaster 2019-11-15 14:46:16 +01:00
16eed0ad4e Inizializzazione broadcaster con operazioni standard dei nodi 2019-11-15 12:22:50 +01:00
a3f75e5449 Ricompilazione con nuovo nodo TF broadcaster 2019-11-14 17:08:39 +01:00
c9108aaa54 Filet temporaei eliminati prima della ricompilazione 2019-11-14 16:10:59 +01:00
e3b88fe742 Aggiunto nodo Broadcaster continuo delle trasformazioni 2019-11-14 16:10:36 +01:00
d725017879 Plot del percorso con reference frame corrente e non world 2019-11-14 15:46:18 +01:00
270bf14a3e Prima implementazione funzionante del cambio frame di riferimento 2019-11-13 15:55:23 +01:00
b98948ce17 aggiornato launch con rviz 2019-11-12 11:36:54 +01:00
b03c2e73bc aggiunto parametro planning frame di default 2019-11-12 10:51:35 +01:00
b7f1857e5c Inizia implementazione Set Frame 2019-11-12 10:51:15 +01:00
a0a36a310d Nessun Cambiamento:
solo apertura progetto
2019-11-05 16:48:32 +01:00
dd918d71af Modificate le funzioni startup e heartbeat
aggiunti timestamp,
da aggiungere un modo per far emettere un messaggio di shutdown prima
che il nodo venga killato.
2019-11-04 15:39:10 +01:00
e21d5a13e3 Primo tentativo di Override della gestione segnali shutdown 2019-11-04 14:29:47 +01:00
3f34c8fbc8 Aggiornato launch con nuovo parametro per shutdown 2019-11-04 11:14:16 +01:00
2e0361d108 Aggiunto messaggio shutdown del nodo 2019-11-04 11:12:43 +01:00
9b26f1979e Aggiornati i messaggi di heartbeat da mandare a gui con timestamp 2019-10-30 17:28:47 +01:00
38ec9bfb3f Aggiunta funzione di heartbeat sul topic interface 2019-10-29 14:17:18 +01:00
a9a82c5fe2 corerzioni nel caricamento dei parametri 2019-10-29 13:11:23 +01:00
8ff1c7e84a Weaponizzata la logica che carica i parametri da ROSparam
Raggruppati tutti i parametri comuni in una struttura uguale per tutti i
nodi.
Aggiungere altri parametri alla lista dei comuni
2019-10-29 11:47:18 +01:00
ad07d2f1ca Aggiornalo launch con i nuovi topic 2019-10-29 11:06:33 +01:00
8778f69eb9 Aggiunti topi MQTT e ROS
aggiunti topic interface per la comunicazione di stato tra i moduli e
l'interfacia Qt (e viceversa)
2019-10-29 11:02:03 +01:00
db4a3fab14 Prove per il messaggio di startup
non carica il messaggio dal server dei parametri, no si può pubblicare
un tipo std::string in un topic ROS
2019-10-28 16:37:20 +01:00
5acd7d634d Prima implementazione messaggio startup dei moduli 2019-10-28 15:39:40 +01:00
7e9dbe38e1 Detection dei salti di giunto funzionante 2019-10-28 14:27:45 +01:00
c56b427e47 Invio delle traiettorie in più segmenti
Funzionante con il nuovo controller
2019-10-28 11:43:39 +01:00
aad972404d piccole modifiche 2019-10-23 17:49:03 +02:00
cee517fd2c Homing funzionante, da perfezionare.
Tutte le posizioni di default fanno parte del file .yaml
2019-10-23 17:37:46 +02:00
c799003f93 modifica del test per verificare i parametri 2019-10-23 16:56:27 +02:00
bf328ae23e eliminate directory di build 2019-10-23 16:23:18 +02:00
c28973f7a4 continua implementazione homing
I parametri non vengono letti correttamente, leggere meglio
documentazione di rosparam
2019-10-23 16:19:22 +02:00
e9b06d3ff1 aggiornato .gitignore 2019-10-23 16:17:22 +02:00
6f1f4820a9 Prima implementazione dell'homing, i giunti vanno tutti a 0 2019-10-23 15:43:10 +02:00
192d694458 corretto errore tra map e vector nella struct RobotData 2019-10-23 14:48:29 +02:00
41c9d879a9 aggiunta lettura parametri default giunti 2019-10-23 14:47:02 +02:00
897c4e911c aggiornato file .launch 2019-10-23 14:46:18 +02:00
f763669919 file di test delle configurazioni 2019-10-23 14:34:54 +02:00
34195f6d86 Incluso il file di default nella configurazione di lancio 2019-10-23 14:22:10 +02:00
76002a3956 aggiunto file con conigurazione dei nomi e posizioni home dei giunti 2019-10-23 14:07:12 +02:00
9798178623 Aggiunta funzione per portare il robot in configurazione Home da
interfaccia grafica, da implementare
2019-10-23 11:14:23 +02:00
a8149e5f72 aggiunta config lancio senza rviz, rallenta la VM 2019-10-23 10:47:59 +02:00
244d0effdc aggiornata configurazione di lancio per usare driver ufficiale, parte ma
la visualizzazione rViz è lenta
2019-10-21 16:39:30 +02:00
4f6420261f switchato al branch calibration_devel 2019-10-21 16:38:52 +02:00
bfe1ee9985 aggiornati pacchetti universal_robot e universal_robots_ros_driver 2019-10-21 15:14:00 +02:00
145 changed files with 2124 additions and 3419 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
/build/
/debug/
/devel/lib/
/logs/
/install/
*.tar.gz

View File

@@ -25,10 +25,12 @@ struct Analog_
Analog_()
: pin(0)
, domain(0)
, state(0.0) {
}
Analog_(const ContainerAllocator& _alloc)
: pin(0)
, domain(0)
, state(0.0) {
(void)_alloc;
}
@@ -38,11 +40,18 @@ struct Analog_
typedef uint8_t _pin_type;
_pin_type pin;
typedef uint8_t _domain_type;
_domain_type domain;
typedef float _state_type;
_state_type state;
enum {
VOLTAGE = 0u,
CURRENT = 1u,
};
typedef boost::shared_ptr< ::ur_msgs::Analog_<ContainerAllocator> > Ptr;
@@ -57,6 +66,10 @@ typedef boost::shared_ptr< ::ur_msgs::Analog const> AnalogConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
@@ -119,12 +132,12 @@ struct MD5Sum< ::ur_msgs::Analog_<ContainerAllocator> >
{
static const char* value()
{
return "341541c8828d055b6dcc443d40207a7d";
return "f41c08a810adf63713aec88712cd553d";
}
static const char* value(const ::ur_msgs::Analog_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0x341541c8828d055bULL;
static const uint64_t static_value2 = 0x6dcc443d40207a7dULL;
static const uint64_t static_value1 = 0xf41c08a810adf637ULL;
static const uint64_t static_value2 = 0x13aec88712cd553dULL;
};
template<class ContainerAllocator>
@@ -143,7 +156,11 @@ struct Definition< ::ur_msgs::Analog_<ContainerAllocator> >
{
static const char* value()
{
return "uint8 pin\n\
return "uint8 VOLTAGE=0\n\
uint8 CURRENT=1\n\
\n\
uint8 pin\n\
uint8 domain # can be VOLTAGE or CURRENT\n\
float32 state\n\
";
}
@@ -164,6 +181,7 @@ namespace serialization
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.pin);
stream.next(m.domain);
stream.next(m.state);
}
@@ -185,6 +203,8 @@ struct Printer< ::ur_msgs::Analog_<ContainerAllocator> >
{
s << indent << "pin: ";
Printer<uint8_t>::stream(s, indent + " ", v.pin);
s << indent << "domain: ";
Printer<uint8_t>::stream(s, indent + " ", v.domain);
s << indent << "state: ";
Printer<float>::stream(s, indent + " ", v.state);
}

View File

@@ -139,12 +139,12 @@ struct MD5Sum< ::ur_msgs::IOStates_<ContainerAllocator> >
{
static const char* value()
{
return "0a5c7b73e3189e9a2caf8583d1bae2e2";
return "3033784e7041da89491b97cc4c1105b5";
}
static const char* value(const ::ur_msgs::IOStates_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0x0a5c7b73e3189e9aULL;
static const uint64_t static_value2 = 0x2caf8583d1bae2e2ULL;
static const uint64_t static_value1 = 0x3033784e7041da89ULL;
static const uint64_t static_value2 = 0x491b97cc4c1105b5ULL;
};
template<class ContainerAllocator>
@@ -176,7 +176,11 @@ bool state\n\
\n\
================================================================================\n\
MSG: ur_msgs/Analog\n\
uint8 VOLTAGE=0\n\
uint8 CURRENT=1\n\
\n\
uint8 pin\n\
uint8 domain # can be VOLTAGE or CURRENT\n\
float32 state\n\
";
}

View File

@@ -0,0 +1,123 @@
// Generated by gencpp from file ur_msgs/SetSpeedSliderFraction.msg
// DO NOT EDIT!
#ifndef UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTION_H
#define UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTION_H
#include <ros/service_traits.h>
#include <ur_msgs/SetSpeedSliderFractionRequest.h>
#include <ur_msgs/SetSpeedSliderFractionResponse.h>
namespace ur_msgs
{
struct SetSpeedSliderFraction
{
typedef SetSpeedSliderFractionRequest Request;
typedef SetSpeedSliderFractionResponse Response;
Request request;
Response response;
typedef Request RequestType;
typedef Response ResponseType;
}; // struct SetSpeedSliderFraction
} // namespace ur_msgs
namespace ros
{
namespace service_traits
{
template<>
struct MD5Sum< ::ur_msgs::SetSpeedSliderFraction > {
static const char* value()
{
return "172aeb6c49379a44cf68480fa5bfad3c";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFraction&) { return value(); }
};
template<>
struct DataType< ::ur_msgs::SetSpeedSliderFraction > {
static const char* value()
{
return "ur_msgs/SetSpeedSliderFraction";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFraction&) { return value(); }
};
// service_traits::MD5Sum< ::ur_msgs::SetSpeedSliderFractionRequest> should match
// service_traits::MD5Sum< ::ur_msgs::SetSpeedSliderFraction >
template<>
struct MD5Sum< ::ur_msgs::SetSpeedSliderFractionRequest>
{
static const char* value()
{
return MD5Sum< ::ur_msgs::SetSpeedSliderFraction >::value();
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionRequest&)
{
return value();
}
};
// service_traits::DataType< ::ur_msgs::SetSpeedSliderFractionRequest> should match
// service_traits::DataType< ::ur_msgs::SetSpeedSliderFraction >
template<>
struct DataType< ::ur_msgs::SetSpeedSliderFractionRequest>
{
static const char* value()
{
return DataType< ::ur_msgs::SetSpeedSliderFraction >::value();
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionRequest&)
{
return value();
}
};
// service_traits::MD5Sum< ::ur_msgs::SetSpeedSliderFractionResponse> should match
// service_traits::MD5Sum< ::ur_msgs::SetSpeedSliderFraction >
template<>
struct MD5Sum< ::ur_msgs::SetSpeedSliderFractionResponse>
{
static const char* value()
{
return MD5Sum< ::ur_msgs::SetSpeedSliderFraction >::value();
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionResponse&)
{
return value();
}
};
// service_traits::DataType< ::ur_msgs::SetSpeedSliderFractionResponse> should match
// service_traits::DataType< ::ur_msgs::SetSpeedSliderFraction >
template<>
struct DataType< ::ur_msgs::SetSpeedSliderFractionResponse>
{
static const char* value()
{
return DataType< ::ur_msgs::SetSpeedSliderFraction >::value();
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionResponse&)
{
return value();
}
};
} // namespace service_traits
} // namespace ros
#endif // UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTION_H

View File

@@ -0,0 +1,192 @@
// Generated by gencpp from file ur_msgs/SetSpeedSliderFractionRequest.msg
// DO NOT EDIT!
#ifndef UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONREQUEST_H
#define UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONREQUEST_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
namespace ur_msgs
{
template <class ContainerAllocator>
struct SetSpeedSliderFractionRequest_
{
typedef SetSpeedSliderFractionRequest_<ContainerAllocator> Type;
SetSpeedSliderFractionRequest_()
: speed_slider_fraction(0.0) {
}
SetSpeedSliderFractionRequest_(const ContainerAllocator& _alloc)
: speed_slider_fraction(0.0) {
(void)_alloc;
}
typedef double _speed_slider_fraction_type;
_speed_slider_fraction_type speed_slider_fraction;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> const> ConstPtr;
}; // struct SetSpeedSliderFractionRequest_
typedef ::ur_msgs::SetSpeedSliderFractionRequest_<std::allocator<void> > SetSpeedSliderFractionRequest;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionRequest > SetSpeedSliderFractionRequestPtr;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionRequest const> SetSpeedSliderFractionRequestConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >::stream(s, "", v);
return s;
}
} // namespace ur_msgs
namespace ros
{
namespace message_traits
{
// BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
// {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'ur_msgs': ['/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg']}
// !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
template <class ContainerAllocator>
struct IsFixedSize< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct HasHeader< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> const>
: FalseType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
{
static const char* value()
{
return "64134244ab4dfc72a3406fe06d580274";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0x64134244ab4dfc72ULL;
static const uint64_t static_value2 = 0xa3406fe06d580274ULL;
};
template<class ContainerAllocator>
struct DataType< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
{
static const char* value()
{
return "ur_msgs/SetSpeedSliderFractionRequest";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
{
static const char* value()
{
return "\n\
\n\
\n\
\n\
\n\
float64 speed_slider_fraction\n\
";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.speed_slider_fraction);
}
ROS_DECLARE_ALLINONE_SERIALIZER
}; // struct SetSpeedSliderFractionRequest_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ur_msgs::SetSpeedSliderFractionRequest_<ContainerAllocator>& v)
{
s << indent << "speed_slider_fraction: ";
Printer<double>::stream(s, indent + " ", v.speed_slider_fraction);
}
};
} // namespace message_operations
} // namespace ros
#endif // UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONREQUEST_H

View File

@@ -0,0 +1,188 @@
// Generated by gencpp from file ur_msgs/SetSpeedSliderFractionResponse.msg
// DO NOT EDIT!
#ifndef UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONRESPONSE_H
#define UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONRESPONSE_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>
namespace ur_msgs
{
template <class ContainerAllocator>
struct SetSpeedSliderFractionResponse_
{
typedef SetSpeedSliderFractionResponse_<ContainerAllocator> Type;
SetSpeedSliderFractionResponse_()
: success(false) {
}
SetSpeedSliderFractionResponse_(const ContainerAllocator& _alloc)
: success(false) {
(void)_alloc;
}
typedef uint8_t _success_type;
_success_type success;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> > Ptr;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> const> ConstPtr;
}; // struct SetSpeedSliderFractionResponse_
typedef ::ur_msgs::SetSpeedSliderFractionResponse_<std::allocator<void> > SetSpeedSliderFractionResponse;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionResponse > SetSpeedSliderFractionResponsePtr;
typedef boost::shared_ptr< ::ur_msgs::SetSpeedSliderFractionResponse const> SetSpeedSliderFractionResponseConstPtr;
// constants requiring out of line definition
template<typename ContainerAllocator>
std::ostream& operator<<(std::ostream& s, const ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> & v)
{
ros::message_operations::Printer< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >::stream(s, "", v);
return s;
}
} // namespace ur_msgs
namespace ros
{
namespace message_traits
{
// BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
// {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'ur_msgs': ['/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_msgs/msg']}
// !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
template <class ContainerAllocator>
struct IsFixedSize< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsFixedSize< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
: TrueType
{ };
template <class ContainerAllocator>
struct IsMessage< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> const>
: TrueType
{ };
template <class ContainerAllocator>
struct HasHeader< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
: FalseType
{ };
template <class ContainerAllocator>
struct HasHeader< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> const>
: FalseType
{ };
template<class ContainerAllocator>
struct MD5Sum< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
{
static const char* value()
{
return "358e233cde0c8a8bcfea4ce193f8fc15";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator>&) { return value(); }
static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
};
template<class ContainerAllocator>
struct DataType< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
{
static const char* value()
{
return "ur_msgs/SetSpeedSliderFractionResponse";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator>&) { return value(); }
};
template<class ContainerAllocator>
struct Definition< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
{
static const char* value()
{
return "bool success\n\
\n\
";
}
static const char* value(const ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator>&) { return value(); }
};
} // namespace message_traits
} // namespace ros
namespace ros
{
namespace serialization
{
template<class ContainerAllocator> struct Serializer< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
{
template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
{
stream.next(m.success);
}
ROS_DECLARE_ALLINONE_SERIALIZER
}; // struct SetSpeedSliderFractionResponse_
} // namespace serialization
} // namespace ros
namespace ros
{
namespace message_operations
{
template<class ContainerAllocator>
struct Printer< ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator> >
{
template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ur_msgs::SetSpeedSliderFractionResponse_<ContainerAllocator>& v)
{
s << indent << "success: ";
Printer<uint8_t>::stream(s, indent + " ", v.success);
}
};
} // namespace message_operations
} // namespace ros
#endif // UR_MSGS_MESSAGE_SETSPEEDSLIDERFRACTIONRESPONSE_H

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: bio_ik
Description: Description of bio_ik
Version: 1.0.0
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/bio_ik-kinetic-support/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lbio_ik
Requires: moveit_core moveit_ros_planning pluginlib roscpp tf tf_conversions

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: controller_stopper
Description: Description of controller_stopper
Version: 0.0.1
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: controller_manager_msgs roscpp std_msgs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: jog_arm
Description: Description of jog_arm
Version: 0.0.3
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/jog_arm/jog_arm/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: roscpp moveit_ros_manipulation moveit_ros_move_group moveit_ros_planning_interface tf

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: jog_msgs
Description: Description of jog_msgs
Version: 0.0.0
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: message_runtime std_msgs geometry_msgs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: moveit_tutorials
Description: Description of moveit_tutorials
Version: 0.1.0
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/moveit_tutorials/doc/interactivity/include -I/usr/include/eigen3
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -linteractivity_utils
Requires: moveit_core moveit_visual_tools moveit_ros_planning_interface interactive_markers

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: panda_moveit_config
Description: Description of panda_moveit_config
Version: 0.7.0
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: roboglue_ros
Description: Description of roboglue_ros
Version: 0.0.2
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/roboglue_ros/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lroboglue_ros
Requires: roscpp

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur10_e_moveit_config
Description: Description of ur10_e_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur10_moveit_config
Description: Description of ur10_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur3_e_moveit_config
Description: Description of ur3_e_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur3_moveit_config
Description: Description of ur3_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur5_e_moveit_config
Description: Description of ur5_e_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur5_moveit_config
Description: Description of ur5_moveit_config
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_bringup
Description: Description of ur_bringup
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_calibration
Description: Description of ur_calibration
Version: 0.0.2
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: roscpp ur_robot_driver

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_controllers
Description: Description of ur_controllers
Version: 0.0.2
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robots_ros_driver/ur_controllers/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lur_controllers
Requires: controller_interface hardware_interface joint_trajectory_controller pluginlib realtime_tools std_msgs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_description
Description: Description of ur_description
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_driver
Description: Description of ur_driver
Version: 1.2.5
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: dynamic_reconfigure

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_e_description
Description: Description of ur_e_description
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_e_gazebo
Description: Description of ur_e_gazebo
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_gazebo
Description: Description of ur_gazebo
Version: 1.2.5
Cflags:
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires:

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_kinematics
Description: Description of ur_kinematics
Version: 1.2.5
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_kinematics/include -I/usr/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lur3_kin -lur5_kin -lur10_kin -lur3_moveit_plugin -lur5_moveit_plugin -lur10_moveit_plugin /usr/lib/x86_64-linux-gnu/libboost_system.so
Requires: roscpp geometry_msgs moveit_core moveit_kinematics moveit_ros_planning pluginlib tf_conversions

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_modern_driver
Description: Description of ur_modern_driver
Version: 0.1.0
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/ur_modern_driver/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lur_hardware_interface
Requires: actionlib control_msgs controller_manager geometry_msgs hardware_interface industrial_msgs roscpp sensor_msgs trajectory_msgs ur_msgs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_msgs
Description: Description of ur_msgs
Version: 1.2.5
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: message_runtime std_msgs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_robot_driver
Description: Description of ur_robot_driver
Version: 0.0.3
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robots_ros_driver/ur_robot_driver/include -I/usr/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lur_robot_driver
Requires: actionlib control_msgs controller_manager geometry_msgs hardware_interface industrial_msgs roscpp sensor_msgs tf tf2_geometry_msgs tf2_msgs trajectory_msgs ur_controllers ur_msgs std_srvs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_rtde_driver
Description: Description of ur_rtde_driver
Version: 0.0.2
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robots_ros_driver/ur_rtde_driver/include -I/usr/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib -lur_rtde_driver
Requires: actionlib control_msgs controller_manager geometry_msgs hardware_interface industrial_msgs roscpp sensor_msgs tf tf2_geometry_msgs tf2_msgs trajectory_msgs ur_controllers std_srvs

View File

@@ -1,8 +0,0 @@
prefix=/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel
Name: ur_rtde_msgs
Description: Description of ur_rtde_msgs
Version: 0.0.1
Cflags: -I/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/include
Libs: -L/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/devel/lib
Requires: message_runtime

View File

@@ -1,304 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from jog_msgs/JogFrame.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class JogFrame(genpy.Message):
_md5sum = "e342f29bf6beaf00261bdae365abfff9"
_type = "jog_msgs/JogFrame"
_has_header = True #flag to mark the presence of a Header object
_full_text = """# This is a message to hold data to jog by specifying a target
# frame. It uses MoveIt! kinematics, so you need to specify the
# JointGroup name to use in group_name. (lienar|angular)_delta is the
# amount of displacement.
# header message. You must set frame_id to define the reference
# coordinate system of the displacament
Header header
# Name of JointGroup of MoveIt!
string group_name
# Target link name to jog. The link must be in the JoingGroup
string link_name
# Linear displacement vector to jog. The refrence frame is defined by
# frame_id in header. Unit is in meter.
geometry_msgs/Vector3 linear_delta
# Angular displacement vector to jog. The refrence frame is defined by
# frame_id in header. Unit is in radian.
geometry_msgs/Vector3 angular_delta
# It uses avoid_collisions option of MoveIt! kinematics. If it is
# true, the robot doesn't move if any collisions occured.
bool avoid_collisions
================================================================================
MSG: std_msgs/Header
# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data
# in a particular coordinate frame.
#
# sequence ID: consecutively increasing ID
uint32 seq
#Two-integer timestamp that is expressed as:
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
# time-handling sugar is provided by the client library
time stamp
#Frame this data is associated with
# 0: no frame
# 1: global frame
string frame_id
================================================================================
MSG: geometry_msgs/Vector3
# This represents a vector in free space.
# It is only meant to represent a direction. Therefore, it does not
# make sense to apply a translation to it (e.g., when applying a
# generic rigid transformation to a Vector3, tf2 will only apply the
# rotation). If you want your data to be translatable too, use the
# geometry_msgs/Point message instead.
float64 x
float64 y
float64 z"""
__slots__ = ['header','group_name','link_name','linear_delta','angular_delta','avoid_collisions']
_slot_types = ['std_msgs/Header','string','string','geometry_msgs/Vector3','geometry_msgs/Vector3','bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
header,group_name,link_name,linear_delta,angular_delta,avoid_collisions
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(JogFrame, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.header is None:
self.header = std_msgs.msg.Header()
if self.group_name is None:
self.group_name = ''
if self.link_name is None:
self.link_name = ''
if self.linear_delta is None:
self.linear_delta = geometry_msgs.msg.Vector3()
if self.angular_delta is None:
self.angular_delta = geometry_msgs.msg.Vector3()
if self.avoid_collisions is None:
self.avoid_collisions = False
else:
self.header = std_msgs.msg.Header()
self.group_name = ''
self.link_name = ''
self.linear_delta = geometry_msgs.msg.Vector3()
self.angular_delta = geometry_msgs.msg.Vector3()
self.avoid_collisions = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
_x = self.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self.group_name
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self.link_name
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_6dB().pack(_x.linear_delta.x, _x.linear_delta.y, _x.linear_delta.z, _x.angular_delta.x, _x.angular_delta.y, _x.angular_delta.z, _x.avoid_collisions))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
if self.header is None:
self.header = std_msgs.msg.Header()
if self.linear_delta is None:
self.linear_delta = geometry_msgs.msg.Vector3()
if self.angular_delta is None:
self.angular_delta = geometry_msgs.msg.Vector3()
end = 0
_x = self
start = end
end += 12
(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.header.frame_id = str[start:end].decode('utf-8')
else:
self.header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.group_name = str[start:end].decode('utf-8')
else:
self.group_name = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.link_name = str[start:end].decode('utf-8')
else:
self.link_name = str[start:end]
_x = self
start = end
end += 49
(_x.linear_delta.x, _x.linear_delta.y, _x.linear_delta.z, _x.angular_delta.x, _x.angular_delta.y, _x.angular_delta.z, _x.avoid_collisions,) = _get_struct_6dB().unpack(str[start:end])
self.avoid_collisions = bool(self.avoid_collisions)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
_x = self.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self.group_name
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self.link_name
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
_x = self
buff.write(_get_struct_6dB().pack(_x.linear_delta.x, _x.linear_delta.y, _x.linear_delta.z, _x.angular_delta.x, _x.angular_delta.y, _x.angular_delta.z, _x.avoid_collisions))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
if self.header is None:
self.header = std_msgs.msg.Header()
if self.linear_delta is None:
self.linear_delta = geometry_msgs.msg.Vector3()
if self.angular_delta is None:
self.angular_delta = geometry_msgs.msg.Vector3()
end = 0
_x = self
start = end
end += 12
(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.header.frame_id = str[start:end].decode('utf-8')
else:
self.header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.group_name = str[start:end].decode('utf-8')
else:
self.group_name = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.link_name = str[start:end].decode('utf-8')
else:
self.link_name = str[start:end]
_x = self
start = end
end += 49
(_x.linear_delta.x, _x.linear_delta.y, _x.linear_delta.z, _x.angular_delta.x, _x.angular_delta.y, _x.angular_delta.z, _x.avoid_collisions,) = _get_struct_6dB().unpack(str[start:end])
self.avoid_collisions = bool(self.avoid_collisions)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_3I = None
def _get_struct_3I():
global _struct_3I
if _struct_3I is None:
_struct_3I = struct.Struct("<3I")
return _struct_3I
_struct_6dB = None
def _get_struct_6dB():
global _struct_6dB
if _struct_6dB is None:
_struct_6dB = struct.Struct("<6dB")
return _struct_6dB

View File

@@ -1,252 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from jog_msgs/JogJoint.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class JogJoint(genpy.Message):
_md5sum = "8d2aa14be64b51cf6374d198bfd489b2"
_type = "jog_msgs/JogJoint"
_has_header = True #flag to mark the presence of a Header object
_full_text = """# This is a message to hold data to jog by specifying joint
# displacement. You only need to set relative displacement to joint
# angles (or displacements for linear joints).
# header message. You must set frame_id to define the reference
# coordinate system of the displacament
Header header
# Name list of the joints. You don't need to specify all joint of the
# robot. Joint names are case-sensitive.
string[] joint_names
# Relative displacement of the joints to jog. The order must be
# identical to joint_names. Unit is in radian for revolutive joints,
# meter for linear joints.
float64[] deltas
================================================================================
MSG: std_msgs/Header
# Standard metadata for higher-level stamped data types.
# This is generally used to communicate timestamped data
# in a particular coordinate frame.
#
# sequence ID: consecutively increasing ID
uint32 seq
#Two-integer timestamp that is expressed as:
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')
# time-handling sugar is provided by the client library
time stamp
#Frame this data is associated with
# 0: no frame
# 1: global frame
string frame_id
"""
__slots__ = ['header','joint_names','deltas']
_slot_types = ['std_msgs/Header','string[]','float64[]']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
header,joint_names,deltas
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(JogJoint, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.header is None:
self.header = std_msgs.msg.Header()
if self.joint_names is None:
self.joint_names = []
if self.deltas is None:
self.deltas = []
else:
self.header = std_msgs.msg.Header()
self.joint_names = []
self.deltas = []
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
_x = self.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
length = len(self.joint_names)
buff.write(_struct_I.pack(length))
for val1 in self.joint_names:
length = len(val1)
if python3 or type(val1) == unicode:
val1 = val1.encode('utf-8')
length = len(val1)
buff.write(struct.pack('<I%ss'%length, length, val1))
length = len(self.deltas)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.deltas))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
if self.header is None:
self.header = std_msgs.msg.Header()
end = 0
_x = self
start = end
end += 12
(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.header.frame_id = str[start:end].decode('utf-8')
else:
self.header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.joint_names = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1 = str[start:end].decode('utf-8')
else:
val1 = str[start:end]
self.joint_names.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.deltas = struct.unpack(pattern, str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_3I().pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs))
_x = self.header.frame_id
length = len(_x)
if python3 or type(_x) == unicode:
_x = _x.encode('utf-8')
length = len(_x)
buff.write(struct.pack('<I%ss'%length, length, _x))
length = len(self.joint_names)
buff.write(_struct_I.pack(length))
for val1 in self.joint_names:
length = len(val1)
if python3 or type(val1) == unicode:
val1 = val1.encode('utf-8')
length = len(val1)
buff.write(struct.pack('<I%ss'%length, length, val1))
length = len(self.deltas)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.deltas.tostring())
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
if self.header is None:
self.header = std_msgs.msg.Header()
end = 0
_x = self
start = end
end += 12
(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
self.header.frame_id = str[start:end].decode('utf-8')
else:
self.header.frame_id = str[start:end]
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.joint_names = []
for i in range(0, length):
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
start = end
end += length
if python3:
val1 = str[start:end].decode('utf-8')
else:
val1 = str[start:end]
self.joint_names.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.deltas = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_3I = None
def _get_struct_3I():
global _struct_3I
if _struct_3I is None:
_struct_3I = struct.Struct("<3I")
return _struct_3I

View File

@@ -1,2 +0,0 @@
from ._JogFrame import *
from ._JogJoint import *

View File

@@ -1,38 +0,0 @@
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_driver/src".split(";")
for p in reversed(__extended_path):
sys_path.insert(0, p)
del p
del sys_path
__path__ = extend_path(__path__, __name__)
del extend_path
__execfiles = []
for p in __extended_path:
src_init_file = os_path.join(p, __name__ + '.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
else:
src_init_file = os_path.join(p, __name__, '__init__.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
del src_init_file
del p
del os_path
del __extended_path
for __execfile in __execfiles:
with open(__execfile, 'r') as __fh:
exec(__fh.read())
del __fh
del __execfile
del __execfiles

View File

@@ -1,36 +0,0 @@
## *********************************************************
##
## File autogenerated for the ur_driver package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/
from dynamic_reconfigure.encoding import extract_params
inf = float('inf')
config_description = {'upper': 'DEFAULT', 'lower': 'groups', 'srcline': 245, 'name': 'Default', 'parent': 0, 'srcfile': '/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'cstate': 'true', 'parentname': 'Default', 'class': 'DEFAULT', 'field': 'default', 'state': True, 'parentclass': '', 'groups': [], 'parameters': [{'srcline': 290, 'description': "Prevent driver from continuously uploading 'prog'", 'max': True, 'cconsttype': 'const bool', 'ctype': 'bool', 'srcfile': '/opt/ros/kinetic/lib/python2.7/dist-packages/dynamic_reconfigure/parameter_generator_catkin.py', 'name': 'prevent_programming', 'edit_method': '', 'default': False, 'level': 0, 'min': False, 'type': 'bool'}], 'type': '', 'id': 0}
min = {}
max = {}
defaults = {}
level = {}
type = {}
all_level = 0
#def extract_params(config):
# params = []
# params.extend(config['parameters'])
# for group in config['groups']:
# params.extend(extract_params(group))
# return params
for param in extract_params(config_description):
min[param['name']] = param['min']
max[param['name']] = param['max']
defaults[param['name']] = param['default']
level[param['name']] = param['level']
type[param['name']] = param['type']
all_level = all_level | param['level']

View File

@@ -1,38 +0,0 @@
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/emanuele/Documents/GestioneMacchine/Robot_Incollaggio/Software/roboglue_ros_ws/src/universal_robot/ur_kinematics/src".split(";")
for p in reversed(__extended_path):
sys_path.insert(0, p)
del p
del sys_path
__path__ = extend_path(__path__, __name__)
del extend_path
__execfiles = []
for p in __extended_path:
src_init_file = os_path.join(p, __name__ + '.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
else:
src_init_file = os_path.join(p, __name__, '__init__.py')
if os_path.isfile(src_init_file):
__execfiles.append(src_init_file)
del src_init_file
del p
del os_path
del __extended_path
for __execfile in __execfiles:
with open(__execfile, 'r') as __fh:
exec(__fh.read())
del __fh
del __execfile
del __execfiles

View File

@@ -1,114 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/Analog.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Analog(genpy.Message):
_md5sum = "341541c8828d055b6dcc443d40207a7d"
_type = "ur_msgs/Analog"
_has_header = False #flag to mark the presence of a Header object
_full_text = """uint8 pin
float32 state
"""
__slots__ = ['pin','state']
_slot_types = ['uint8','float32']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
pin,state
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(Analog, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.pin is None:
self.pin = 0
if self.state is None:
self.state = 0.
else:
self.pin = 0
self.state = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_Bf = None
def _get_struct_Bf():
global _struct_Bf
if _struct_Bf is None:
_struct_Bf = struct.Struct("<Bf")
return _struct_Bf

View File

@@ -1,116 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/Digital.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Digital(genpy.Message):
_md5sum = "83707be3fa18d2ffe57381ea034aa262"
_type = "ur_msgs/Digital"
_has_header = False #flag to mark the presence of a Header object
_full_text = """uint8 pin
bool state
"""
__slots__ = ['pin','state']
_slot_types = ['uint8','bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
pin,state
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(Digital, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.pin is None:
self.pin = 0
if self.state is None:
self.state = False
else:
self.pin = 0
self.state = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
self.state = bool(self.state)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
self.state = bool(self.state)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2B = None
def _get_struct_2B():
global _struct_2B
if _struct_2B is None:
_struct_2B = struct.Struct("<2B")
return _struct_2B

View File

@@ -1,317 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/IOStates.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import ur_msgs.msg
class IOStates(genpy.Message):
_md5sum = "0a5c7b73e3189e9a2caf8583d1bae2e2"
_type = "ur_msgs/IOStates"
_has_header = False #flag to mark the presence of a Header object
_full_text = """Digital[] digital_in_states
Digital[] digital_out_states
Digital[] flag_states
Analog[] analog_in_states
Analog[] analog_out_states
================================================================================
MSG: ur_msgs/Digital
uint8 pin
bool state
================================================================================
MSG: ur_msgs/Analog
uint8 pin
float32 state
"""
__slots__ = ['digital_in_states','digital_out_states','flag_states','analog_in_states','analog_out_states']
_slot_types = ['ur_msgs/Digital[]','ur_msgs/Digital[]','ur_msgs/Digital[]','ur_msgs/Analog[]','ur_msgs/Analog[]']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
digital_in_states,digital_out_states,flag_states,analog_in_states,analog_out_states
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(IOStates, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.digital_in_states is None:
self.digital_in_states = []
if self.digital_out_states is None:
self.digital_out_states = []
if self.flag_states is None:
self.flag_states = []
if self.analog_in_states is None:
self.analog_in_states = []
if self.analog_out_states is None:
self.analog_out_states = []
else:
self.digital_in_states = []
self.digital_out_states = []
self.flag_states = []
self.analog_in_states = []
self.analog_out_states = []
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
length = len(self.digital_in_states)
buff.write(_struct_I.pack(length))
for val1 in self.digital_in_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.digital_out_states)
buff.write(_struct_I.pack(length))
for val1 in self.digital_out_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.flag_states)
buff.write(_struct_I.pack(length))
for val1 in self.flag_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.analog_in_states)
buff.write(_struct_I.pack(length))
for val1 in self.analog_in_states:
_x = val1
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
length = len(self.analog_out_states)
buff.write(_struct_I.pack(length))
for val1 in self.analog_out_states:
_x = val1
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
if self.digital_in_states is None:
self.digital_in_states = None
if self.digital_out_states is None:
self.digital_out_states = None
if self.flag_states is None:
self.flag_states = None
if self.analog_in_states is None:
self.analog_in_states = None
if self.analog_out_states is None:
self.analog_out_states = None
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.digital_in_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.digital_in_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.digital_out_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.digital_out_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.flag_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.flag_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.analog_in_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Analog()
_x = val1
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
self.analog_in_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.analog_out_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Analog()
_x = val1
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
self.analog_out_states.append(val1)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
length = len(self.digital_in_states)
buff.write(_struct_I.pack(length))
for val1 in self.digital_in_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.digital_out_states)
buff.write(_struct_I.pack(length))
for val1 in self.digital_out_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.flag_states)
buff.write(_struct_I.pack(length))
for val1 in self.flag_states:
_x = val1
buff.write(_get_struct_2B().pack(_x.pin, _x.state))
length = len(self.analog_in_states)
buff.write(_struct_I.pack(length))
for val1 in self.analog_in_states:
_x = val1
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
length = len(self.analog_out_states)
buff.write(_struct_I.pack(length))
for val1 in self.analog_out_states:
_x = val1
buff.write(_get_struct_Bf().pack(_x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
if self.digital_in_states is None:
self.digital_in_states = None
if self.digital_out_states is None:
self.digital_out_states = None
if self.flag_states is None:
self.flag_states = None
if self.analog_in_states is None:
self.analog_in_states = None
if self.analog_out_states is None:
self.analog_out_states = None
end = 0
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.digital_in_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.digital_in_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.digital_out_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.digital_out_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.flag_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Digital()
_x = val1
start = end
end += 2
(_x.pin, _x.state,) = _get_struct_2B().unpack(str[start:end])
val1.state = bool(val1.state)
self.flag_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.analog_in_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Analog()
_x = val1
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
self.analog_in_states.append(val1)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
self.analog_out_states = []
for i in range(0, length):
val1 = ur_msgs.msg.Analog()
_x = val1
start = end
end += 5
(_x.pin, _x.state,) = _get_struct_Bf().unpack(str[start:end])
self.analog_out_states.append(val1)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_Bf = None
def _get_struct_Bf():
global _struct_Bf
if _struct_Bf is None:
_struct_Bf = struct.Struct("<Bf")
return _struct_Bf
_struct_2B = None
def _get_struct_2B():
global _struct_2B
if _struct_2B is None:
_struct_2B = struct.Struct("<2B")
return _struct_2B

View File

@@ -1,181 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/MasterboardDataMsg.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class MasterboardDataMsg(genpy.Message):
_md5sum = "807af5dc427082b111fa23d1fd2cd585"
_type = "ur_msgs/MasterboardDataMsg"
_has_header = False #flag to mark the presence of a Header object
_full_text = """# This data structure contains the MasterboardData structure
# used by the Universal Robots controller
#
# MasterboardData is part of the data structure being send on the
# secondary client communications interface
#
# This data structure is send at 10 Hz on TCP port 30002
#
# Documentation can be found on the Universal Robots Support site, article
# number 16496.
uint32 digital_input_bits
uint32 digital_output_bits
int8 analog_input_range0
int8 analog_input_range1
float64 analog_input0
float64 analog_input1
int8 analog_output_domain0
int8 analog_output_domain1
float64 analog_output0
float64 analog_output1
float32 masterboard_temperature
float32 robot_voltage_48V
float32 robot_current
float32 master_io_current
uint8 master_safety_state
uint8 master_onoff_state
"""
__slots__ = ['digital_input_bits','digital_output_bits','analog_input_range0','analog_input_range1','analog_input0','analog_input1','analog_output_domain0','analog_output_domain1','analog_output0','analog_output1','masterboard_temperature','robot_voltage_48V','robot_current','master_io_current','master_safety_state','master_onoff_state']
_slot_types = ['uint32','uint32','int8','int8','float64','float64','int8','int8','float64','float64','float32','float32','float32','float32','uint8','uint8']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
digital_input_bits,digital_output_bits,analog_input_range0,analog_input_range1,analog_input0,analog_input1,analog_output_domain0,analog_output_domain1,analog_output0,analog_output1,masterboard_temperature,robot_voltage_48V,robot_current,master_io_current,master_safety_state,master_onoff_state
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(MasterboardDataMsg, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.digital_input_bits is None:
self.digital_input_bits = 0
if self.digital_output_bits is None:
self.digital_output_bits = 0
if self.analog_input_range0 is None:
self.analog_input_range0 = 0
if self.analog_input_range1 is None:
self.analog_input_range1 = 0
if self.analog_input0 is None:
self.analog_input0 = 0.
if self.analog_input1 is None:
self.analog_input1 = 0.
if self.analog_output_domain0 is None:
self.analog_output_domain0 = 0
if self.analog_output_domain1 is None:
self.analog_output_domain1 = 0
if self.analog_output0 is None:
self.analog_output0 = 0.
if self.analog_output1 is None:
self.analog_output1 = 0.
if self.masterboard_temperature is None:
self.masterboard_temperature = 0.
if self.robot_voltage_48V is None:
self.robot_voltage_48V = 0.
if self.robot_current is None:
self.robot_current = 0.
if self.master_io_current is None:
self.master_io_current = 0.
if self.master_safety_state is None:
self.master_safety_state = 0
if self.master_onoff_state is None:
self.master_onoff_state = 0
else:
self.digital_input_bits = 0
self.digital_output_bits = 0
self.analog_input_range0 = 0
self.analog_input_range1 = 0
self.analog_input0 = 0.
self.analog_input1 = 0.
self.analog_output_domain0 = 0
self.analog_output_domain1 = 0
self.analog_output0 = 0.
self.analog_output1 = 0.
self.masterboard_temperature = 0.
self.robot_voltage_48V = 0.
self.robot_current = 0.
self.master_io_current = 0.
self.master_safety_state = 0
self.master_onoff_state = 0
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2I2b2d2b2d4f2B().pack(_x.digital_input_bits, _x.digital_output_bits, _x.analog_input_range0, _x.analog_input_range1, _x.analog_input0, _x.analog_input1, _x.analog_output_domain0, _x.analog_output_domain1, _x.analog_output0, _x.analog_output1, _x.masterboard_temperature, _x.robot_voltage_48V, _x.robot_current, _x.master_io_current, _x.master_safety_state, _x.master_onoff_state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 62
(_x.digital_input_bits, _x.digital_output_bits, _x.analog_input_range0, _x.analog_input_range1, _x.analog_input0, _x.analog_input1, _x.analog_output_domain0, _x.analog_output_domain1, _x.analog_output0, _x.analog_output1, _x.masterboard_temperature, _x.robot_voltage_48V, _x.robot_current, _x.master_io_current, _x.master_safety_state, _x.master_onoff_state,) = _get_struct_2I2b2d2b2d4f2B().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2I2b2d2b2d4f2B().pack(_x.digital_input_bits, _x.digital_output_bits, _x.analog_input_range0, _x.analog_input_range1, _x.analog_input0, _x.analog_input1, _x.analog_output_domain0, _x.analog_output_domain1, _x.analog_output0, _x.analog_output1, _x.masterboard_temperature, _x.robot_voltage_48V, _x.robot_current, _x.master_io_current, _x.master_safety_state, _x.master_onoff_state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 62
(_x.digital_input_bits, _x.digital_output_bits, _x.analog_input_range0, _x.analog_input_range1, _x.analog_input0, _x.analog_input1, _x.analog_output_domain0, _x.analog_output_domain1, _x.analog_output0, _x.analog_output1, _x.masterboard_temperature, _x.robot_voltage_48V, _x.robot_current, _x.master_io_current, _x.master_safety_state, _x.master_onoff_state,) = _get_struct_2I2b2d2b2d4f2B().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2I2b2d2b2d4f2B = None
def _get_struct_2I2b2d2b2d4f2B():
global _struct_2I2b2d2b2d4f2B
if _struct_2I2b2d2b2d4f2B is None:
_struct_2I2b2d2b2d4f2B = struct.Struct("<2I2b2d2b2d4f2B")
return _struct_2I2b2d2b2d4f2B

View File

@@ -1,159 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/RobotModeDataMsg.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class RobotModeDataMsg(genpy.Message):
_md5sum = "867308ca39e2cc0644b50db27deb661f"
_type = "ur_msgs/RobotModeDataMsg"
_has_header = False #flag to mark the presence of a Header object
_full_text = """# This data structure contains the RobotModeData structure
# used by the Universal Robots controller
#
# This data structure is send at 10 Hz on TCP port 30002
#
# Note: this message does not carry all fields from the RobotModeData structure as broadcast by the robot controller, but a subset.
uint64 timestamp
bool is_robot_connected
bool is_real_robot_enabled
bool is_power_on_robot
bool is_emergency_stopped
bool is_protective_stopped
bool is_program_running
bool is_program_paused
"""
__slots__ = ['timestamp','is_robot_connected','is_real_robot_enabled','is_power_on_robot','is_emergency_stopped','is_protective_stopped','is_program_running','is_program_paused']
_slot_types = ['uint64','bool','bool','bool','bool','bool','bool','bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
timestamp,is_robot_connected,is_real_robot_enabled,is_power_on_robot,is_emergency_stopped,is_protective_stopped,is_program_running,is_program_paused
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(RobotModeDataMsg, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.timestamp is None:
self.timestamp = 0
if self.is_robot_connected is None:
self.is_robot_connected = False
if self.is_real_robot_enabled is None:
self.is_real_robot_enabled = False
if self.is_power_on_robot is None:
self.is_power_on_robot = False
if self.is_emergency_stopped is None:
self.is_emergency_stopped = False
if self.is_protective_stopped is None:
self.is_protective_stopped = False
if self.is_program_running is None:
self.is_program_running = False
if self.is_program_paused is None:
self.is_program_paused = False
else:
self.timestamp = 0
self.is_robot_connected = False
self.is_real_robot_enabled = False
self.is_power_on_robot = False
self.is_emergency_stopped = False
self.is_protective_stopped = False
self.is_program_running = False
self.is_program_paused = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_Q7B().pack(_x.timestamp, _x.is_robot_connected, _x.is_real_robot_enabled, _x.is_power_on_robot, _x.is_emergency_stopped, _x.is_protective_stopped, _x.is_program_running, _x.is_program_paused))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 15
(_x.timestamp, _x.is_robot_connected, _x.is_real_robot_enabled, _x.is_power_on_robot, _x.is_emergency_stopped, _x.is_protective_stopped, _x.is_program_running, _x.is_program_paused,) = _get_struct_Q7B().unpack(str[start:end])
self.is_robot_connected = bool(self.is_robot_connected)
self.is_real_robot_enabled = bool(self.is_real_robot_enabled)
self.is_power_on_robot = bool(self.is_power_on_robot)
self.is_emergency_stopped = bool(self.is_emergency_stopped)
self.is_protective_stopped = bool(self.is_protective_stopped)
self.is_program_running = bool(self.is_program_running)
self.is_program_paused = bool(self.is_program_paused)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_Q7B().pack(_x.timestamp, _x.is_robot_connected, _x.is_real_robot_enabled, _x.is_power_on_robot, _x.is_emergency_stopped, _x.is_protective_stopped, _x.is_program_running, _x.is_program_paused))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 15
(_x.timestamp, _x.is_robot_connected, _x.is_real_robot_enabled, _x.is_power_on_robot, _x.is_emergency_stopped, _x.is_protective_stopped, _x.is_program_running, _x.is_program_paused,) = _get_struct_Q7B().unpack(str[start:end])
self.is_robot_connected = bool(self.is_robot_connected)
self.is_real_robot_enabled = bool(self.is_real_robot_enabled)
self.is_power_on_robot = bool(self.is_power_on_robot)
self.is_emergency_stopped = bool(self.is_emergency_stopped)
self.is_protective_stopped = bool(self.is_protective_stopped)
self.is_program_running = bool(self.is_program_running)
self.is_program_paused = bool(self.is_program_paused)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_Q7B = None
def _get_struct_Q7B():
global _struct_Q7B
if _struct_Q7B is None:
_struct_Q7B = struct.Struct("<Q7B")
return _struct_Q7B

View File

@@ -1,520 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/RobotStateRTMsg.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class RobotStateRTMsg(genpy.Message):
_md5sum = "ce6feddd3ccb4ca7dbcd0ff105b603c7"
_type = "ur_msgs/RobotStateRTMsg"
_has_header = False #flag to mark the presence of a Header object
_full_text = """# Data structure for the realtime communications interface (aka Matlab interface)
# used by the Universal Robots controller
#
# This data structure is send at 125 Hz on TCP port 30003
#
# Dokumentation can be found on the Universal Robots Support Wiki
# (http://wiki03.lynero.net/Technical/RealTimeClientInterface?rev=9)
float64 time
float64[] q_target
float64[] qd_target
float64[] qdd_target
float64[] i_target
float64[] m_target
float64[] q_actual
float64[] qd_actual
float64[] i_actual
float64[] tool_acc_values
float64[] tcp_force
float64[] tool_vector
float64[] tcp_speed
float64 digital_input_bits
float64[] motor_temperatures
float64 controller_timer
float64 test_value
float64 robot_mode
float64[] joint_modes
"""
__slots__ = ['time','q_target','qd_target','qdd_target','i_target','m_target','q_actual','qd_actual','i_actual','tool_acc_values','tcp_force','tool_vector','tcp_speed','digital_input_bits','motor_temperatures','controller_timer','test_value','robot_mode','joint_modes']
_slot_types = ['float64','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64[]','float64','float64[]','float64','float64','float64','float64[]']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
time,q_target,qd_target,qdd_target,i_target,m_target,q_actual,qd_actual,i_actual,tool_acc_values,tcp_force,tool_vector,tcp_speed,digital_input_bits,motor_temperatures,controller_timer,test_value,robot_mode,joint_modes
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(RobotStateRTMsg, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.time is None:
self.time = 0.
if self.q_target is None:
self.q_target = []
if self.qd_target is None:
self.qd_target = []
if self.qdd_target is None:
self.qdd_target = []
if self.i_target is None:
self.i_target = []
if self.m_target is None:
self.m_target = []
if self.q_actual is None:
self.q_actual = []
if self.qd_actual is None:
self.qd_actual = []
if self.i_actual is None:
self.i_actual = []
if self.tool_acc_values is None:
self.tool_acc_values = []
if self.tcp_force is None:
self.tcp_force = []
if self.tool_vector is None:
self.tool_vector = []
if self.tcp_speed is None:
self.tcp_speed = []
if self.digital_input_bits is None:
self.digital_input_bits = 0.
if self.motor_temperatures is None:
self.motor_temperatures = []
if self.controller_timer is None:
self.controller_timer = 0.
if self.test_value is None:
self.test_value = 0.
if self.robot_mode is None:
self.robot_mode = 0.
if self.joint_modes is None:
self.joint_modes = []
else:
self.time = 0.
self.q_target = []
self.qd_target = []
self.qdd_target = []
self.i_target = []
self.m_target = []
self.q_actual = []
self.qd_actual = []
self.i_actual = []
self.tool_acc_values = []
self.tcp_force = []
self.tool_vector = []
self.tcp_speed = []
self.digital_input_bits = 0.
self.motor_temperatures = []
self.controller_timer = 0.
self.test_value = 0.
self.robot_mode = 0.
self.joint_modes = []
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_d().pack(self.time))
length = len(self.q_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.q_target))
length = len(self.qd_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.qd_target))
length = len(self.qdd_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.qdd_target))
length = len(self.i_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.i_target))
length = len(self.m_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.m_target))
length = len(self.q_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.q_actual))
length = len(self.qd_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.qd_actual))
length = len(self.i_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.i_actual))
length = len(self.tool_acc_values)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.tool_acc_values))
length = len(self.tcp_force)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.tcp_force))
length = len(self.tool_vector)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.tool_vector))
length = len(self.tcp_speed)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.tcp_speed))
buff.write(_get_struct_d().pack(self.digital_input_bits))
length = len(self.motor_temperatures)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.motor_temperatures))
_x = self
buff.write(_get_struct_3d().pack(_x.controller_timer, _x.test_value, _x.robot_mode))
length = len(self.joint_modes)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(struct.pack(pattern, *self.joint_modes))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 8
(self.time,) = _get_struct_d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.q_target = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qd_target = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qdd_target = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.i_target = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.m_target = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.q_actual = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qd_actual = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.i_actual = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tool_acc_values = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tcp_force = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tool_vector = struct.unpack(pattern, str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tcp_speed = struct.unpack(pattern, str[start:end])
start = end
end += 8
(self.digital_input_bits,) = _get_struct_d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.motor_temperatures = struct.unpack(pattern, str[start:end])
_x = self
start = end
end += 24
(_x.controller_timer, _x.test_value, _x.robot_mode,) = _get_struct_3d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.joint_modes = struct.unpack(pattern, str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_d().pack(self.time))
length = len(self.q_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.q_target.tostring())
length = len(self.qd_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.qd_target.tostring())
length = len(self.qdd_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.qdd_target.tostring())
length = len(self.i_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.i_target.tostring())
length = len(self.m_target)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.m_target.tostring())
length = len(self.q_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.q_actual.tostring())
length = len(self.qd_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.qd_actual.tostring())
length = len(self.i_actual)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.i_actual.tostring())
length = len(self.tool_acc_values)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.tool_acc_values.tostring())
length = len(self.tcp_force)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.tcp_force.tostring())
length = len(self.tool_vector)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.tool_vector.tostring())
length = len(self.tcp_speed)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.tcp_speed.tostring())
buff.write(_get_struct_d().pack(self.digital_input_bits))
length = len(self.motor_temperatures)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.motor_temperatures.tostring())
_x = self
buff.write(_get_struct_3d().pack(_x.controller_timer, _x.test_value, _x.robot_mode))
length = len(self.joint_modes)
buff.write(_struct_I.pack(length))
pattern = '<%sd'%length
buff.write(self.joint_modes.tostring())
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 8
(self.time,) = _get_struct_d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.q_target = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qd_target = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qdd_target = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.i_target = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.m_target = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.q_actual = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.qd_actual = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.i_actual = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tool_acc_values = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tcp_force = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tool_vector = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.tcp_speed = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
start = end
end += 8
(self.digital_input_bits,) = _get_struct_d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.motor_temperatures = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
_x = self
start = end
end += 24
(_x.controller_timer, _x.test_value, _x.robot_mode,) = _get_struct_3d().unpack(str[start:end])
start = end
end += 4
(length,) = _struct_I.unpack(str[start:end])
pattern = '<%sd'%length
start = end
end += struct.calcsize(pattern)
self.joint_modes = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=length)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_d = None
def _get_struct_d():
global _struct_d
if _struct_d is None:
_struct_d = struct.Struct("<d")
return _struct_d
_struct_3d = None
def _get_struct_3d():
global _struct_3d
if _struct_3d is None:
_struct_3d = struct.Struct("<3d")
return _struct_3d

View File

@@ -1,160 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/ToolDataMsg.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class ToolDataMsg(genpy.Message):
_md5sum = "404fc266f37d89f75b372d12fa94a122"
_type = "ur_msgs/ToolDataMsg"
_has_header = False #flag to mark the presence of a Header object
_full_text = """# This data structure contains the ToolData structure
# used by the Universal Robots controller
int8 ANALOG_INPUT_RANGE_CURRENT = 0
int8 ANALOG_INPUT_RANGE_VOLTAGE = 1
int8 analog_input_range2 # one of ANALOG_INPUT_RANGE_*
int8 analog_input_range3 # one of ANALOG_INPUT_RANGE_*
float64 analog_input2
float64 analog_input3
float32 tool_voltage_48v
uint8 tool_output_voltage
float32 tool_current
float32 tool_temperature
uint8 TOOL_BOOTLOADER_MODE = 249
uint8 TOOL_RUNNING_MODE = 253
uint8 TOOL_IDLE_MODE = 255
uint8 tool_mode # one of TOOL_*
"""
# Pseudo-constants
ANALOG_INPUT_RANGE_CURRENT = 0
ANALOG_INPUT_RANGE_VOLTAGE = 1
TOOL_BOOTLOADER_MODE = 249
TOOL_RUNNING_MODE = 253
TOOL_IDLE_MODE = 255
__slots__ = ['analog_input_range2','analog_input_range3','analog_input2','analog_input3','tool_voltage_48v','tool_output_voltage','tool_current','tool_temperature','tool_mode']
_slot_types = ['int8','int8','float64','float64','float32','uint8','float32','float32','uint8']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
analog_input_range2,analog_input_range3,analog_input2,analog_input3,tool_voltage_48v,tool_output_voltage,tool_current,tool_temperature,tool_mode
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(ToolDataMsg, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.analog_input_range2 is None:
self.analog_input_range2 = 0
if self.analog_input_range3 is None:
self.analog_input_range3 = 0
if self.analog_input2 is None:
self.analog_input2 = 0.
if self.analog_input3 is None:
self.analog_input3 = 0.
if self.tool_voltage_48v is None:
self.tool_voltage_48v = 0.
if self.tool_output_voltage is None:
self.tool_output_voltage = 0
if self.tool_current is None:
self.tool_current = 0.
if self.tool_temperature is None:
self.tool_temperature = 0.
if self.tool_mode is None:
self.tool_mode = 0
else:
self.analog_input_range2 = 0
self.analog_input_range3 = 0
self.analog_input2 = 0.
self.analog_input3 = 0.
self.tool_voltage_48v = 0.
self.tool_output_voltage = 0
self.tool_current = 0.
self.tool_temperature = 0.
self.tool_mode = 0
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2b2dfB2fB().pack(_x.analog_input_range2, _x.analog_input_range3, _x.analog_input2, _x.analog_input3, _x.tool_voltage_48v, _x.tool_output_voltage, _x.tool_current, _x.tool_temperature, _x.tool_mode))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 32
(_x.analog_input_range2, _x.analog_input_range3, _x.analog_input2, _x.analog_input3, _x.tool_voltage_48v, _x.tool_output_voltage, _x.tool_current, _x.tool_temperature, _x.tool_mode,) = _get_struct_2b2dfB2fB().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2b2dfB2fB().pack(_x.analog_input_range2, _x.analog_input_range3, _x.analog_input2, _x.analog_input3, _x.tool_voltage_48v, _x.tool_output_voltage, _x.tool_current, _x.tool_temperature, _x.tool_mode))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 32
(_x.analog_input_range2, _x.analog_input_range3, _x.analog_input2, _x.analog_input3, _x.tool_voltage_48v, _x.tool_output_voltage, _x.tool_current, _x.tool_temperature, _x.tool_mode,) = _get_struct_2b2dfB2fB().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2b2dfB2fB = None
def _get_struct_2b2dfB2fB():
global _struct_2b2dfB2fB
if _struct_2b2dfB2fB is None:
_struct_2b2dfB2fB = struct.Struct("<2b2dfB2fB")
return _struct_2b2dfB2fB

View File

@@ -1,7 +0,0 @@
from ._Analog import *
from ._Digital import *
from ._IOStates import *
from ._MasterboardDataMsg import *
from ._RobotModeDataMsg import *
from ._RobotStateRTMsg import *
from ._ToolDataMsg import *

View File

@@ -1,280 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/SetIORequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetIORequest(genpy.Message):
_md5sum = "85200c86fbe60ea3e047bae3d6574bfd"
_type = "ur_msgs/SetIORequest"
_has_header = False #flag to mark the presence of a Header object
_full_text = """
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
"""
# Pseudo-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
__slots__ = ['fun','pin','state']
_slot_types = ['int8','int8','float32']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
fun,pin,state
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetIORequest, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.fun is None:
self.fun = 0
if self.pin is None:
self.pin = 0
if self.state is None:
self.state = 0.
else:
self.fun = 0
self.pin = 0
self.state = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
_x = self
buff.write(_get_struct_2bf().pack(_x.fun, _x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
_x = self
start = end
end += 6
(_x.fun, _x.pin, _x.state,) = _get_struct_2bf().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
_x = self
buff.write(_get_struct_2bf().pack(_x.fun, _x.pin, _x.state))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
_x = self
start = end
end += 6
(_x.fun, _x.pin, _x.state,) = _get_struct_2bf().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_2bf = None
def _get_struct_2bf():
global _struct_2bf
if _struct_2bf is None:
_struct_2bf = struct.Struct("<2bf")
return _struct_2bf
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/SetIOResponse.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetIOResponse(genpy.Message):
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
_type = "ur_msgs/SetIOResponse"
_has_header = False #flag to mark the presence of a Header object
_full_text = """bool success
"""
__slots__ = ['success']
_slot_types = ['bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
success
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetIOResponse, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.success is None:
self.success = False
else:
self.success = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_B = None
def _get_struct_B():
global _struct_B
if _struct_B is None:
_struct_B = struct.Struct("<B")
return _struct_B
class SetIO(object):
_type = 'ur_msgs/SetIO'
_md5sum = 'e1b580ccf43a938f2efbbb98bbe3e277'
_request_class = SetIORequest
_response_class = SetIOResponse

View File

@@ -1,220 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/SetPayloadRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetPayloadRequest(genpy.Message):
_md5sum = "d12269f931817591aa52047629ca66ca"
_type = "ur_msgs/SetPayloadRequest"
_has_header = False #flag to mark the presence of a Header object
_full_text = """float32 payload
"""
__slots__ = ['payload']
_slot_types = ['float32']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
payload
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetPayloadRequest, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.payload is None:
self.payload = 0.
else:
self.payload = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_f().pack(self.payload))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 4
(self.payload,) = _get_struct_f().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_f().pack(self.payload))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 4
(self.payload,) = _get_struct_f().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_f = None
def _get_struct_f():
global _struct_f
if _struct_f is None:
_struct_f = struct.Struct("<f")
return _struct_f
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_msgs/SetPayloadResponse.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetPayloadResponse(genpy.Message):
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
_type = "ur_msgs/SetPayloadResponse"
_has_header = False #flag to mark the presence of a Header object
_full_text = """bool success
"""
__slots__ = ['success']
_slot_types = ['bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
success
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetPayloadResponse, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.success is None:
self.success = False
else:
self.success = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_B = None
def _get_struct_B():
global _struct_B
if _struct_B is None:
_struct_B = struct.Struct("<B")
return _struct_B
class SetPayload(object):
_type = 'ur_msgs/SetPayload'
_md5sum = '7f12eb632882cb73e5721178d0073e39'
_request_class = SetPayloadRequest
_response_class = SetPayloadResponse

View File

@@ -1,2 +0,0 @@
from ._SetIO import *
from ._SetPayload import *

View File

@@ -1,220 +0,0 @@
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_rtde_msgs/SetSpeedSliderRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetSpeedSliderRequest(genpy.Message):
_md5sum = "fdb28210bfa9d7c91146260178d9a584"
_type = "ur_rtde_msgs/SetSpeedSliderRequest"
_has_header = False #flag to mark the presence of a Header object
_full_text = """float64 data
"""
__slots__ = ['data']
_slot_types = ['float64']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
data
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetSpeedSliderRequest, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.data is None:
self.data = 0.
else:
self.data = 0.
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_d().pack(self.data))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 8
(self.data,) = _get_struct_d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_d().pack(self.data))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 8
(self.data,) = _get_struct_d().unpack(str[start:end])
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_d = None
def _get_struct_d():
global _struct_d
if _struct_d is None:
_struct_d = struct.Struct("<d")
return _struct_d
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from ur_rtde_msgs/SetSpeedSliderResponse.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SetSpeedSliderResponse(genpy.Message):
_md5sum = "358e233cde0c8a8bcfea4ce193f8fc15"
_type = "ur_rtde_msgs/SetSpeedSliderResponse"
_has_header = False #flag to mark the presence of a Header object
_full_text = """bool success
"""
__slots__ = ['success']
_slot_types = ['bool']
def __init__(self, *args, **kwds):
"""
Constructor. Any message fields that are implicitly/explicitly
set to None will be assigned a default value. The recommend
use is keyword arguments as this is more robust to future message
changes. You cannot mix in-order arguments and keyword arguments.
The available fields are:
success
:param args: complete set of field values, in .msg order
:param kwds: use keyword arguments corresponding to message field names
to set specific fields.
"""
if args or kwds:
super(SetSpeedSliderResponse, self).__init__(*args, **kwds)
#message fields cannot be None, assign default values for those that are
if self.success is None:
self.success = False
else:
self.success = False
def _get_types(self):
"""
internal API method
"""
return self._slot_types
def serialize(self, buff):
"""
serialize message into buffer
:param buff: buffer, ``StringIO``
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize(self, str):
"""
unpack serialized message in str into this message instance
:param str: byte array of serialized message, ``str``
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
def serialize_numpy(self, buff, numpy):
"""
serialize message with numpy array types into buffer
:param buff: buffer, ``StringIO``
:param numpy: numpy python module
"""
try:
buff.write(_get_struct_B().pack(self.success))
except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self)))))
except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self)))))
def deserialize_numpy(self, str, numpy):
"""
unpack serialized message in str into this message instance using numpy for array types
:param str: byte array of serialized message, ``str``
:param numpy: numpy python module
"""
try:
end = 0
start = end
end += 1
(self.success,) = _get_struct_B().unpack(str[start:end])
self.success = bool(self.success)
return self
except struct.error as e:
raise genpy.DeserializationError(e) #most likely buffer underfill
_struct_I = genpy.struct_I
def _get_struct_I():
global _struct_I
return _struct_I
_struct_B = None
def _get_struct_B():
global _struct_B
if _struct_B is None:
_struct_B = struct.Struct("<B")
return _struct_B
class SetSpeedSlider(object):
_type = 'ur_rtde_msgs/SetSpeedSlider'
_md5sum = '6dffcb6acc6bec80315e1c470ea1bca9'
_request_class = SetSpeedSliderRequest
_response_class = SetSpeedSliderResponse

Some files were not shown because too many files have changed in this diff Show More