[Question] SKRL - How to add new parameters in tensorboard logging? (managed RL) #3820
Replies: 8 comments
-
|
Thank you for posting this. Have you tried agent.track_data("Torques / mean_joint_torque", mean_joint_torque)or agent.writer.add_scalar("Torques / joint_torque", joint_torque_value, global_step=step) |
Beta Was this translation helpful? Give feedback.
-
|
I've found it but I don't know where to put it. I've to create an CurrTerm() with that funcion or I have to modify something else? where I find the "agent" in a Managed env? |
Beta Was this translation helpful? Give feedback.
-
|
I don't know manager-based workflow in detail, but similar to the direct workflow, the is the Now, we need to ask to a manager-based expert about how to access it from the task config. |
Beta Was this translation helpful? Give feedback.
-
|
@Mayankm96 @kellyguo11 @ooctipus No one can help me ? |
Beta Was this translation helpful? Give feedback.
-
|
Our apologies for the delay. The team has been caught up with conferences and whatnot. I'll move this post to our Discussions for follow up. Here are a few possible next steps. When using a Manager-Based RL environment (via Here’s how to integrate your custom logging like 1. Where the
|
| Method | Recommended For | Access to agent |
Code location |
|---|---|---|---|
track_data() in trainer loop |
Most flexible | Yes | Modify SKRL trainer or subclass |
track_data() in reward term |
Quick experiments | Sometimes | Inside mdp.py or RewTermCfg |
Callback config (agent_cfg["experiment"]["callbacks"]) |
Clean and modular | Yes | In agent_cfg before trainer creation |
This setup is compatible with Isaac Lab version ≥2025.09 and SKRL 1.4.3, based on NVIDIA’s official documentation for manager-based RL environments and SKRL integration within Isaac Lab.12
Footnotes
Beta Was this translation helpful? Give feedback.
-
|
@RandomOakForest The last way it seems to be the best, so for example if I wanna add it I have to do something like this? I add here the code to log the new parameters
Is that correct? |
Beta Was this translation helpful? Give feedback.
-
|
I added the line |
Beta Was this translation helpful? Give feedback.
-
|
I'm still having problems making the parameters appear in tensorboard |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi,
I need to add new log values during training, I have all the rewards but I need also to log other things, for example the joints torque but I'm not able to find how I can do it.
Where I can find an example code to do that?
Beta Was this translation helpful? Give feedback.
All reactions