mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
rtde_client: fix typos.
This commit is contained in:
@@ -67,7 +67,7 @@ bool RTDEClient::init()
|
|||||||
tmp_version = dynamic_cast<rtde_interface::RequestProtocolVersion*>(package.get());
|
tmp_version = dynamic_cast<rtde_interface::RequestProtocolVersion*>(package.get());
|
||||||
if (!tmp_version->accepted_)
|
if (!tmp_version->accepted_)
|
||||||
{
|
{
|
||||||
throw UrException("Neither protocol version 1 nor 2 were accepted by the robot. This should not happen!");
|
throw UrException("Neither protocol version 1 nor 2 was accepted by the robot. This should not happen!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ bool RTDEClient::start()
|
|||||||
std::unique_ptr<comm::URPackage<PackageHeader>> package;
|
std::unique_ptr<comm::URPackage<PackageHeader>> package;
|
||||||
stream_.write(buffer, size, written);
|
stream_.write(buffer, size, written);
|
||||||
if (!pipeline_.getLatestProduct(package, std::chrono::milliseconds(1000)))
|
if (!pipeline_.getLatestProduct(package, std::chrono::milliseconds(1000)))
|
||||||
throw UrException("Could not get respone to rtde communication start request from robot. This should not happen!");
|
throw UrException("Could not get response to RTDE communication start request from robot. This should not happen!");
|
||||||
rtde_interface::ControlPackageStart* tmp = dynamic_cast<rtde_interface::ControlPackageStart*>(package.get());
|
rtde_interface::ControlPackageStart* tmp = dynamic_cast<rtde_interface::ControlPackageStart*>(package.get());
|
||||||
return tmp->accepted_;
|
return tmp->accepted_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user