Closed zzz622848 closed 1 year ago
print('{"NECK_Y": self.robot().qu[self.jointIndex]}', {"NECK_Y": self.robot().qu[self.jointIndex]}) output is: {"NECK_Y": self.robot().qu[self.jointIndex]} {'NECK_Y': [1.2217304764]}
self.postureTask.target({"NECK_Y": self.robot().qu[self.jointIndex]}) code will stop running here and quit from function run_callback()
CoM task is tested successfully. I checked the function in cpp: void PostureTask::target(const std::map<std::string, std::vector> & joints), I guess this is the compatiblity problem between std::map in C++ with dict in Python.
print('{"NECK_Y": self.robot().qu[self.jointIndex]}', {"NECK_Y": self.robot().qu[self.jointIndex]}) output is: {"NECK_Y": self.robot().qu[self.jointIndex]} {'NECK_Y': [1.2217304764]}
self.postureTask.target({"NECK_Y": self.robot().qu[self.jointIndex]}) code will stop running here and quit from function run_callback()