Intelligent Vehicle Cyber Physical Systems (IVCPS) integrate connected vehicles, roadside infrastructure, and cloud platforms to generate digital twins of real-time urban traffic scenarios, offering significant potential for motion optimization of Intelligent Connected Vehicles (ICVs). However, existing traffic prediction methods often exhibit high latency and cannot be directly translated into motion constraints, while the cooperation framework between IVCPS and ICVs remains undefined. Therefore, this study proposes the ST-Trans Planner, a hierarchical motion optimization framework within the IVCPS-ICV cooperative environment. At the system level, the framework first constructs a dynamic directed graph with lane segments as nodes and employs a Transformer-based model integrated with the Cell Transmission Model to predict the occupancy state of lane segments. Based on these predictions, it generates a collision-free path using dynamic programming (DP) and quadratic programming (QP) and constructs a discrete spatial-temporal corridor along the path to form the initial feasible region for speed optimization. At the vehicle level, the ST-Trans Planner predicts the trajectories of surrounding traffic participants, based on which it prunes the initial solution space through probabilistic conflict detection and then applies DP and QP to obtain a smooth speed profile. The proposed framework is validated on a SUMO-CARLA co-simulation platform using real-world trajectories from the pNEUMA dataset across three urban traffic scenarios: basic segments, signalized intersections, and unsignalized intersections. Simulation experiments demonstrate that the ST-Trans Planner significantly improves both safety and efficiency for individual ICVs, achieving tighter car-following, higher passing speeds, and smoother speed profiles while satisfying real-time constraints. In cooperative optimization, the framework effectively coordinates multiple ICVs, leading to synchronized speed profiles, increased traffic throughput, and reduced idle time at intersections. Despite the increased system-level latency caused by cooperative optimization, its decoupled architecture maintains real-time responsiveness, ensuring practical deployability. Overall, this study presents a low-latency lane occupancy prediction method that directly feeds into motion constraints, a hierarchical planner that decouples path and speed optimization, and a clear division-of-labor framework for IVCPS-ICV cooperation, harnessing the advantages of both centralized and distributed control.