jhu-bigss/Universal_Robots_CB2_ROS2_Driver

TODO: Remove hard-coded IP configuration & Get localhost IP address

Closed this issue · 1 comments

Right now it is using a hard-coded IP address.

std::string GetLocalhostIP()
{
std::string ip_str;
char* env_val = getenv("BIGSS_PC_IP");
if (env_val)
{
ip_str = env_val;
}
else
{
ip_str = osaSocket::GetLocalhostIP();
}
// return ip_str;
return "192.168.36.1";
}

The user needs to know its own computer's IP and change this line

then recompile in order to connect to the robot.

We need to fix this.