coppelia wrote: ↑14 Mar 2023, 07:47
Does this produce an error?
Code: Select all
int main()
{
RemoteAPIClient client;
auto sim = client.getObject().sim();
std::string signalName = "/IRB4600_executedMovId";
auto tmp = sim.getStringSignal(signalName);
return 0;
}
Cheers
Hello,
Whether I need to start emulation?
When I didn't start the simulation, the error was, Unhandled exception at 0x00007FFE2A2BCD29 in BinPacking.exe: Microsoft C++ exception: jsoncons::json_runtime_error<std::out_of_range,void> at memory location 0x0000004FB491E5C8.
When I start the simulation, the error was, Unhandled exception at 0x00007FFE2A2BCD29 in BinPacking.exe: Microsoft C++ exception: jsoncons::conv_error at memory location 0x000000B519B1E270.
In coppeliasim, I wrote the following code in the sysCall_init function of the IRB4600 child script.
Code: Select all
stringSignalName='/IRB4600_executedMovId'
sim.setStringSignal(stringSignalName,'ready')