Hello everyone,
I’m posting here since I encourter some difficulties to send bodies infos with multiple cams.
I’m trying to use several ZED camera in a Unreal Engine project. I’ve followed several tutorials.
First, I’ve tried with only one cam and the sender-mono
C++ sample project. I got it working.
Now, I’m on the sender-multi-cam
sample. At first, I can launch it, but when I add a json_config_filename
, then I have a std::bad_alloc
unhandled exception within the readFusionConfigurationFile
function.
I have investigated a little further by creating my own config reading function.
It seems the error comes from the copy of sl::CommunicationParameters
.
Indeed, when I try to create a new one and push it into a vector, I also get a bad_alloc error.
std::vector<sl::CommunicationParameters> comms;
sl::CommunicationParameters commTemp;
commTemp.setForSharedMemory();
comms.push_back(commTemp); // <-- Error here
I also get an error when I try to get the IP address of the communication.
sl::CommunicationParameters commTemp;
std::string ipaddress = "127.000.000.001";
commTemp.setForLocalNetwork(ipaddress, 2000);
commTemp.getIpAddress(); // <-- Error here
Some more info :
The configuration file have been created using ZED360.
The C++ project have been created using the CMake as introduise in this tutorial : Building a C++ Application on Windows - Stereolabs
I using :
- CMake 3.30.2
- Visual 2022
- Cuda 12.6.20 (same problem with Cuda 12.1)
- ZED SDK for cuda 12.1 v4.1.3
- 2 cameras Zed 2i
I hope I’m clear enough and you have enough info to help. Otherwise, let me know.
Have a good day !