I'm using the ZeroMQ remote API (4.6.0-rev18) for C++. I'm having issues when using executeScriptString. I was wondering if I'm missing something or if there is a bug.
Minimal example:
(There is a Panda robot on the scene)
Code: Select all
#include "RemoteAPIClient.h"
#include <iostream>
int main()
{
try
{
RemoteAPIClient client;
auto sim = client.getObject().sim();
sim.startSimulation();
auto handle = sim.getObject("/Franka/connection");
auto scriptHandle = sim.addScript(sim.scripttype_childscript);
sim.associateScriptWithObject(scriptHandle, handle);
sim.executeScriptString("--Hello there", scriptHandle);
sim.stopSimulation();
}
catch (const std::runtime_error& e)
{
std::cerr << "Caught a runtime error: " << e.what() << std::endl;
}
return 0;
}
Code: Select all
Caught a runtime error: No such function: sim.executeScriptString
Best regards,
Juan