thus , wholly unprepared and entirely miscalculating the effects of the physical principals involved , edward pierce slung a coil of rope over his shoulder , opened the compartment door , and clambered up onto the roof of the moving carriage .