Confusion about sim.moveToPose
Posted: 22 Mar 2023, 09:09
Hello,
In c++, the argument of sim.moveToPose is as follow:
I don't know what callback is. The type of callback is string. Shouldn't it be a function? Is it defined in a child script? But I found that in the example sendIkMovementSequence-simMoveToPose, this function is defined in python, so should it be defined in c++, and if so, how should this function be defined?
Thanks
In c++, the argument of sim.moveToPose is as follow:
Code: Select all
std::tuple<std::vector<double>, double> sim::moveToPose(int64_t flags, std::vector<double> currentPose, std::vector<double> maxVel, std::vector<double> maxAccel, std::vector<double> maxJerk, std::vector<double> targetPose, std::string callback, std::optional<json> auxData, std::optional<std::vector<double>> metric, std::optional<double> timeStep)
Thanks