Hybrid drive line for urban solid waste collection and compaction