mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
fix: use const_cast for port string in Kobuki communication
This commit is contained in:
@@ -95,7 +95,7 @@ void checkKobukiConnection()
|
|||||||
}
|
}
|
||||||
|
|
||||||
cout << "Attempting to reconnect Kobuki..." << endl;
|
cout << "Attempting to reconnect Kobuki..." << endl;
|
||||||
robot.startCommunication(port.c_str(), true, nullptr);
|
robot.startCommunication(const_cast<char*>(port.c_str()), true, nullptr);
|
||||||
|
|
||||||
if (robot.isConnected()){
|
if (robot.isConnected()){
|
||||||
cout << "Kobuki reconnected successfully!" << endl;
|
cout << "Kobuki reconnected successfully!" << endl;
|
||||||
|
Reference in New Issue
Block a user