You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added UR exceptions InvalidRange and IncompatibleRobotVersion
Added them to the various checks for starting force mode.
I created IncompatibleRobotVersion instead of using VersionMismatch, as the VersionMismatch would not give enough information in my opinion.
Copy file name to clipboardExpand all lines: include/ur_client_library/exceptions.h
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,5 +124,40 @@ class TimeoutException : public UrException
124
124
private:
125
125
std::string text_;
126
126
};
127
+
128
+
classIncompatibleRobotVersion : publicUrException
129
+
{
130
+
public:
131
+
explicitIncompatibleRobotVersion() = delete;
132
+
explicitIncompatibleRobotVersion(std::string text, int required_robot_version, int actual_robot_version): std::runtime_error(text)
133
+
{
134
+
std::stringstream ss;
135
+
ss << text << "\n" << "The requested feature is incompatible with the connected robot. Required Polyscope version: " << required_robot_version << ", actual Polyscope version: " << actual_robot_version;
0 commit comments