1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Use correct naming scheme for variable robot_ip

This commit is contained in:
Felix Mauch
2019-05-20 11:29:14 +02:00
parent 7743c79f6d
commit 0e0bffcdc6
5 changed files with 12 additions and 10 deletions

View File

@@ -44,10 +44,10 @@ bool HardwareInterface ::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_h
{
joint_velocities_ = { { 0, 0, 0, 0, 0, 0 } };
joint_efforts_ = { { 0, 0, 0, 0, 0, 0 } };
std::string ROBOT_IP = robot_hw_nh.param<std::string>("robot_ip", "192.168.56.101");
std::string robot_ip = robot_hw_nh.param<std::string>("robot_ip", "192.168.56.101");
ROS_INFO_STREAM("Initializing urdriver");
ur_driver_.reset(new UrDriver(ROBOT_IP));
ur_driver_.reset(new UrDriver(robot_ip));
if (!root_nh.getParam("hardware_interface/joints", joint_names_))
{