Skip to content

Commit 6e7ec0e

Browse files
committed
Set force mode parameters from config
1 parent 1a95cf9 commit 6e7ec0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ur/ur_driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ static const std::string SERVER_IP_REPLACE("SERVER_IP_REPLACE");
5252
static const std::string SERVER_PORT_REPLACE("SERVER_PORT_REPLACE");
5353
static const std::string TRAJECTORY_PORT_REPLACE("TRAJECTORY_SERVER_PORT_REPLACE");
5454
static const std::string SCRIPT_COMMAND_PORT_REPLACE("SCRIPT_COMMAND_SERVER_PORT_REPLACE");
55-
static const std::string FORCE_MODE_SET_DAMPING_REPLACE("FORCE_MODE_SET_DAMPING_REPLACE");
56-
static const std::string FORCE_MODE_SET_GAIN_SCALING_REPLACE("FORCE_MODE_SET_GAIN_SCALING_REPLACE");
5755

5856
UrDriver::~UrDriver()
5957
{
@@ -73,6 +71,8 @@ void UrDriver::init(const UrDriverConfiguration& config)
7371
socket_reconnection_timeout_ = config.socket_reconnection_timeout;
7472
rtde_initialization_attempts_ = config.rtde_initialization_attempts;
7573
rtde_initialization_timeout_ = config.rtde_initialization_timeout;
74+
force_mode_gain_scale_factor_ = config.force_mode_gain_scaling;
75+
force_mode_damping_factor_ = config.force_mode_damping;
7676

7777
URCL_LOG_DEBUG("Initializing urdriver");
7878
URCL_LOG_DEBUG("Initializing RTDE client");

0 commit comments

Comments
 (0)