Hi,
Normally Thymio II respect USB standard.
When you plug it will take maximum 100mA until it is recognized by the host.
It is then allow to get up to 500mA.
For charging when you plug it to a wall charger it will go up to 1A.
But as you know the robot can need more, but the chip which control the power switch automatically to the battery to not ask more than 500mA on a USB host.
If the robot consume less it will charge the battery, if more it will ask the battery the needed power.
I don't know how RPi works but powering it from a USB hub could be problematic. It could be that the hub is limited at 500mA too and than all the current is taken by Thymio and there is no power left for RPi.
From a battery it should work if the battery are enough charged.
Finally just to know:
- each led are asking at maximum 20mA (they are 40) so you can have 800mA for the leds.
- Each motor can draw maximum 400mA (a little more for a short time, but than there is a protection when they are stall)
- the IR sensor are pulsing at 500mA (very short pulse)
- uControler around 60-80mA
- the laud speaker can also ask 500mA max