mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Add time parameter back to speedj for SW >= 3.3.
This commit is contained in:
@@ -98,7 +98,12 @@ void UrRealtimeCommunication::addCommandToQueue(std::string inp) {
|
|||||||
void UrRealtimeCommunication::setSpeed(double q0, double q1, double q2,
|
void UrRealtimeCommunication::setSpeed(double q0, double q1, double q2,
|
||||||
double q3, double q4, double q5, double acc) {
|
double q3, double q4, double q5, double acc) {
|
||||||
char cmd[1024];
|
char cmd[1024];
|
||||||
if( robot_state_->getVersion() >= 3.1 ) {
|
if( robot_state_->getVersion() >= 3.3 ) {
|
||||||
|
sprintf(cmd,
|
||||||
|
"speedj([%1.5f, %1.5f, %1.5f, %1.5f, %1.5f, %1.5f], %f, 0.008)\n",
|
||||||
|
q0, q1, q2, q3, q4, q5, acc);
|
||||||
|
}
|
||||||
|
else if( robot_state_->getVersion() >= 3.1 ) {
|
||||||
sprintf(cmd,
|
sprintf(cmd,
|
||||||
"speedj([%1.5f, %1.5f, %1.5f, %1.5f, %1.5f, %1.5f], %f)\n",
|
"speedj([%1.5f, %1.5f, %1.5f, %1.5f, %1.5f, %1.5f], %f)\n",
|
||||||
q0, q1, q2, q3, q4, q5, acc);
|
q0, q1, q2, q3, q4, q5, acc);
|
||||||
|
|||||||
Reference in New Issue
Block a user