Open Taherifar opened 2 months ago
Hi @gergondet, @arntanguy, @mmurooka, @antodld I just wanted to follow up on this and upload my latest version of the McTorqueTask.zip code here. I have tried to register the task on McTorqueTask.cpp
, but still need to include the McTorqueTask.h
in my controller. Thus, to add on the previous question, how could we properly register a task in mc_rtc
.
Hi @gergondet, @arntanguy, @mmurooka, @antodld, I would like to add a torque task to
mc_rtc
to be able to minimise the torque consumption in the robot joints. My robot is a legged robot similar toJVRC
and I am using a stabilizer. I have realised that the torque task is part of theTask
library, but is not implemented inmc_rtc
. Thus, I have tried to createtorqueTask.cpp
andtorqueTask.h
and add it tomc_tasks
folder inmc_rtc
. I have attached my code here (TorqueTask.zip). I have also added those files toCMakeLists.txt
to be able to compile. There are still some issue with the compilation of the code, but I was just going to share this and make sure that I am on the right path. 1- Given my initial goal to minimize the torques, is this a right decision to use theTasks/QPTasks.h
class fromTask
library and add it to themc_rtc
? 2- Do you see any major issue with the.cpp
and.h
files that I have attached? 3- Do I need to add contact as suggested in this tutorial, in order for the torque task be effective? Thanks