Added default values to the CARLA client

This commit is contained in:
Guillermo 2023-04-26 13:42:34 +02:00 committed by bernat
parent 508f3b9141
commit 70a8ca831b
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ void export_client() {
;
class_<cc::Client>("Client",
init<std::string, uint16_t, size_t>((arg("host"), arg("port"), arg("worker_threads")=0u)))
init<std::string, uint16_t, size_t>((arg("host")="127.0.0.1", arg("port")=2000, arg("worker_threads")=0u)))
.def("set_timeout", &::SetTimeout, (arg("seconds")))
.def("get_client_version", &cc::Client::GetClientVersion)
.def("get_server_version", CONST_CALL_WITHOUT_GIL(cc::Client, GetServerVersion))