-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating GUI information Posture #435
Comments
Hi @MTdeVries It's hard to tell without seeing the code of your task but the values in the slider are those you provide through the callback for In the built-in posture task, the relevant code is here, i.e.
Here, the first callback returns
I'm guessing you are inheriting the
You could override void MyTask::addToGUI(mc_rtc::gui::StateBuilder & gui)
{
// Add the GUI of PostureTask
mc_tasks::PostureTask::addToGUI(gui);
// Remove the Target elements since we want to override them
gui.removeCategory({"Tasks", name_, "Target"});
// Add elements to Target with the behavior you want
// ....
} |
Yes. You have to create a separate
Did you add the corresponding implementation? The error you're getting might be due to unresolved symbols. |
Hi
I'm currently working on controlling a new robot with a custom made "PartialPostureTask". I load the robot in as is shown in the tutorial of "integrating a new robot in mc_rtc". In this folder I define an initial stance for the robot. While controlling the robot, I remove the existing posture task and add a custom posture task for specified joints. However in the GUI the Posture targets don't seem to get update anymore, in other words the sliders aren't connected. I was therefore wondering if I could include or either overwrite the information of the slider in my code to be able to control certain joints with the sliders in the task.
For elaboration purposes, I added a screencapture below. In the figure the sliders are depicted under the tabs talos_partial_posture task as target. However these are set to the initial stance and don't get updated. Ideally these would get updated and I'm able to set a different position for certain joint while using this custom partialposturetask.
With kind regards,
Mark
The text was updated successfully, but these errors were encountered: