Abstract

This paper presents a novel motion planning approach for coherent groups with constant area, and it integrates C-L method into the probabilistic roadmap algorithm with sampling on the medial axis (MAPRM). In the preprocessing phase, the group is discretized into a grid-set which represents the configuration of the group. Then, a number of samples are generated on workspace by medial axis technique. These samples are extended into group’s configuration nodes of the roadmap using an extending strategy. Also, the group's deformation degree relative to the desired shape is introduced to improve the evaluation function. It gives users more flexibility to determine the respective weights of the group’s deformation degree and its distance to the goal in the query phase. After that, a novel local planner is constructed to connect any two neighbor configurations by using C-L method and the improved evaluation function. Experiments show that our approach is able to find paths for the coherent group efficiently and keep its area invariant when moving toward the goal.

1. Introduction

Human crowd is a fascinating social phenomenon which has been constantly investigated by experts from various areas. Crowd simulation can be considered as a multiagent system [1, 2]. And it is enjoying considerable success in numerous applied domains, most notably in evacuation scenarios where simulated crowd behaviors can help to improve the safety of interior building designs [3, 4]. In crowd simulation, groups are the most important entities that are worth intensive studies. Groups can be defined as semipermanent collections of individuals sharing navigation goals who attempt to maintain spatial cohesion with each other. But these groups may split up when moving toward the goal. By contrast, coherent groups are a class of groups which maintain permanent gathering and would not split up [5].

At present, coherent groups have gained tremendous momentum in military and safety training applications. This type of coherent groups can be seen as deformable objects with area conservation. And investigating the motion planning problem for these deformable objects has an important meaning in computer animation, crowd simulation, and group behavior generating. For example, we need to simulate the behavior of a squad of soldiers which have a desired formation with a constant area on the whole and constant space between any two soldiers when marching toward the goal. The formation of the soldier group can reflect their tactical strategy that can provide different functions for distinct physical effects, which could be a key factor in defeating the enemy in a battle. In addition, it can be used to simulate different motions of the wild congregated animals in computer animations to create special visual effects, for example, a crowd of migratory geese that herd to the south in perfect V formation. However, most current motion planning approaches cannot control the area of the group as a constant easily, and how to plan paths for these deformable objects with area conservation is still a challenging problem in these fields.

As one of the motion planning methods, C-L method proposed by Chang and Li [6] provides an excellent approach to planning the path of deformable objects and maintaining its size conservation when moving toward the goal. Unfortunately, the C-L method is computationally expensive because it did not use the environment’s information efficiently. Fortunately, a probabilistic roadmap planner using the medial axis technique (MAPRM) which generates samples on the medial axis of the workspace has an additional benefit in this situation to fully take advantage of the environment’s information [7, 8].

Consequently, in this paper, a novel approach will be described which is used to plan a path to connect the initial and goal configuration of the coherent group by combining MAPRM algorithm and C-L method for size conservation. Rather than planning the motion for individual entities, the goal of this paper is planning the motion for the group as a whole, in which the group is modeled as a deformable grid-set with a constant area and planned for this particular grid-set.

This paper is organized as follows. The previous works related to group motion planning are introduced in Section 2. And the framework of our approach, including the flowchart of the local planner, is proposed in Section 3. In Section 4, we first describe the sampling mechanism on medial axis briefly and discretization approach for coherent group. Then we describe how to generate configuration nodes of the roadmap by extending the position samples on medial axis. Section 5 shows the detailed designing process of the local planner. Experiments and results are given in Section 6. Finally, we draw some conclusions and outline future work in Section 7.

In the virtual environment the most common approach to simulating group movement is to use flocking which was introduced by Reynolds [9]. Bayazit et al. [10] combined flocking with the probabilistic roadmap algorithm (PRM) to guide the group’s motion toward the goal. In their works, the roadmap provided a convenient abstract representation of global information in complex environments and associated rules with roadmap nodes which enables local customization of behaviors. Li and Chou [11] proposed a novel centralized planning approach that moves the robots in groups formed dynamically with a sphere-tree structure. Li et al. [12] combined basic flocking algorithm with leader-follower model to simulate group’s motion. At the same time, in order to plan the path of the group, they tried to model the shape of the group’s region by estimating the longitudinal depth of the group. However the above methods cannot ensure the group’s coherence when moving toward the goal and do not consider the groups as deformable objects.

Guibas et al. [13] proposed a probabilistic roadmap planner for flexible objects with a workspace medial-axis-based sampling approach (MAPRM). In their method, the medial axis of the workspace was computed at the preprocessing stage and the configurations of the flexible objects were fitted at random points along the medial axis. However, this method is only suitable for planning the path for the objects like sheets of metal or plastic flexible pipes which only can be bent. But the coherent group can deform to arbitrary shapes.

Overmars et al. [1416] introduced a new approach to motion planning for coherent groups of entities. In their methods, the group was represented as a deformable shape of sufficient volume, such as deformable rounded rectangle or hinged rectangle. Then, an extension of the probabilistic roadmap method was used to plan the motion for this deformable shape. In Kamphuis’s method, the designers must take care to guarantee that the area of the deformable shape remained the same during its motion. However, the area of the group cannot be controlled as a constant easily in their method and the shape of the group cannot be simplified into rectangle in the complex environment.

Because of the defects of the above methods, Chang and Li [6] proposed a novel method to investigate the motion planning problem for deformable objects with size conservation which is named as C-L method in this paper. In C-L method, the deformable object was firstly discretized into a series of small grids. Together, these grids formed a grid-set that represented the configuration of the deformable object. Then, C-L method planned paths for the whole grid-set to generate the paths of the deformable objects. So, these grids became the smallest units to be operated by C-L method in which a new configuration was generated according to the current information of the environment and the configuration of the grid-set. At the same time, the deformation degree of the object which represented the difference between the current configuration of the object and the desired configuration was introduced to improve the evaluation function of the searching algorithm. Later, Chang and Li [17, 18] made the crowd conform to a specific shape while avoiding collisions with other agents in the crowd or with obstacles by combining C-L method with fuzzy controller. The C-L method was used to generate the global motion of the group, while the fuzzy controller was used to move the agents in the group to conform to a desired shape.

Chen et al. presented a modelling and simulation of extra-large-scale crowd evacuation using massively parallel computing technology [19]. Each individual in the scenario is modeled as an adaptable and autonomous agent driven by a weight-based decision-making mechanism. The simulation is intended to characterize the individuals’ adaptable behaviors. Their approach adopts GPGPU to successfully sustain massively parallel modeling and simulation of a huge evacuation scenario consisting of hundreds of thousands of individuals. Their approaches for handling big scientific data with GPGPU are also applicable for dynamic data driven applications (DDDAS) of online simulation studies [2022].

Planning paths for deformable objects or flexible objects has gained various applications in industrial automation, computer generated animation, and virtual environments where the deformable properties of objects need to be considered for the creation of realistic motion. In this paper, we restrict ourselves to motion planning approaches to compute paths for a special flexible object which is the coherent group with area conservation. The group’s contour changes in different environments; however the group’s area must keep constant when moving along the planned path.

3. Planning Framework

In general, this study was inspired by the discretization technique in C-L method [17, 18], medial axis technique [7], and Kamphuis and Overmars’ work [14, 16]. The goal of our approach is twofold. On one hand we should make the group move toward the goal with optimal evaluation function; on the other hand the group can be changed into any shape according to the environment and the group’s area must be kept constant in this process. In this paper, the evaluation function is the weighted sum of the distance to the goal and the difference between the group’s configuration and the desired configuration. Optimal evaluation function means that the value of evaluation function is the smallest at every run step. Our approach consists of the following steps.(1)Specify the initial, goal, and desired shape of the group and discretize these shapes into grid-sets which, respectively, represent the group’s initial, goal, and desired configurations.(2)Generate a series of position samples on the medial axis of the workspace and extend these position samples into group’s configuration samples which will be seen as the nodes of the roadmap.(3)Design the local planner based on C-L method and the improved evaluation function. Then, construct a roadmap of possible motions for the deformable configuration of the group between any two neighbor nodes using this local planner.(4)To answer a motion query, use the roadmap to compute a collision-free path for the deformable configuration.

The flowchart of our approach is illustrated in Figure 1 and the detailed process of the local planner is illustrated in Figure 2 in which we combine C-L method and improved evaluation function. Our local planner has two advantages: one is that the configuration nodes extended from position samples can provide guidance for C-L method and the other is that C-L method can ensure the constant of the group’s area.

4. Generate Configuration Nodes

4.1. Medial Axis Sampling Technique and Discretization of the Group

Firstly, the medial axis technique for sampling strives to generate samples on the medial axis of the workspace [17, 18]. This approach has been used previously in motion planning for deformable objects [13]. The technique is as follows: generate a uniformly random point in workspace (or 2D configuration space in [18]). According to whether this point lies in free space or not, compute different retraction directions and then retract this point to medial axis. Repeat this process until a series of position samples on medial axis of the workspace are generated. These position samples are represented as () where represents the total number of the position samples. The fact that medial axis technique provides the largest clearance from obstacles for the group is advantageous. Secondly, the group’s shape is discretized into a grid-set, denoted by , in which represents the information of the th grid and represents the total number of the grids. Obviously, is the configuration of the coherent group. In the grid-set, there are two types of grids: inner grids and boundary grids. The inner grids are the ones whose neighbor grids are also the grids of , while this is not true for the boundary grids. Moreover, we suppose that the group is compact; that is, no grid is isolated and no hole exists in and the directions of all the grids are the same. An isolated grid means that there is no common border or vertex between it and any other ones. Figure 3 graphically illustrates the compact group versus incompact ones. Obviously, the compact property ensures the group’s coherence.

4.2. The Extending Strategy of Generating Configuration Nodes

The goal of this section is to extend the 2D position samples into group’s configuration samples which are dimensions. The extending strategy is divided into two steps.

Step 1. Find the center grid of and then place it on the position samples. The center grid of is represented as whose information can be computed by So, at every position sample, we make , , and equal to the tangent direction of the medial axis at ().

Step 2. After placing the center grid on (), we should decide the positions of the other grids according to the environment around (), the desired configuration , and the compact property of the group. In this process, the desired configuration is regarded as a template to provide guidance for generating configuration samples.
At first, we place a duplicate of on () by making its center grid coincide with () and its direction aligns with the tangent direction of medial axis; then we move the grids in which have collided with the obstacles to free space according to the compact property and the distance to (). However, as these collision grids move to free space, the center of may change. Then we should adjust the center of so that it coincides with () once again. This is done by adjusting the boundary grids and the whole position of iteratively. Using as the template to guide the generation of configuration samples, it can reduce the differences between the desired configuration and the generated configuration. The detailed algorithm for generating the configuration samples is illustrated in Algorithm 1 and Figure 4 gives graphic depictions of the results computed by Algorithm 1.
It is important to note that the medial axis is prone to having small “twigs” in the obstacle boundaries. These are of no use during the planning stage and are discarded if their length is less than a specified threshold [13].

Input. The desired Configuration , Obstacle space ,   
Output. Configuration_Samples
  Step  1–9 are used to place a copy of on and move the grids which collide with
to the free space  /
(1)    Clone from and ensure that the center grid of coincides with and the
direction of is aligned with the tangent direction of medial axis at
(2)    for   =
(3)          if   collides with
(4)            find the boundary grid of which is represented as nearest to and
collision-free with
(5)                  find the neighbor grid of which is represented as nearest to
and collision-free with
(6)            move to
(7)          end if
(8)          update  
(9)    end for
  Step  10–22 are used to iteratively  adjust the center of to   /
(10)    compute the center of which is represented as
(11)    if the distance between and is bigger than a small positive value
(12)        if   don’t collide with
(13)            move to
in which is the vector from
to
(14)          return   =
(15)        else find the farthest boundary grid from which is denoted as
satisfying the condition that
(16)                  find the farthest boundary grid from which is denoted as
satisfying the condition that
(17)                    find the neighbor grid of which is farthest to and is
represented as
(18)                 move to
(19)                    update  
(20)                    go to Step  10 until the distance between and is small enough
(21)        end if
(22)    end if

5. Local Planner

5.1. The Node Neighbors and Shape Differences

Based on the medial axis technique and Algorithm 1, configuration samples have been generated which will be regarded as the nodes of the roadmap. The role of the local planner is to connect any two neighbor configuration samples and then construct the roadmap. Suppose and are two neighbour configuration samples. Making the judgment that is the neighbor node of is based on the two conditions in where () and () represent the center grid of and , respectively. and are the predefined thresholds. represents the shape difference between and .

The two conditions in (2) represent two criteria deciding which configuration samples we should try to connect using the local planner. One of the criteria we use is the distance of the center grid in the workspace between and . If they are too far apart, the chance of finding a free path between them is small. The second criterion is the shape difference between them. If they are bigger than a predefined threshold, the chance of finding a path between them is also small. is formulated in

In formulation (3), is used to compute the minimum distance from the grid to and is formulated in Formulation (3) denotes that is the sum of all the distances from grids in to . The bigger the is, the larger the shape difference between and is. Obviously, (3) can also be used to compute the deformation degree of a configuration relative to .

5.2. Improved Evaluation Function

In C-L method, an improved evaluation function is proposed which is worthy of being used for reference and is formulated in

In formulation (5), represents the estimated distance from to the goal. represents the deformation degree of relative to . and , respectively, represent the weight of the distance to the goal and the weight of deformation degree. They also satisfy the restriction of .

Different allocations of and produce diverse evaluation function values which will have a great effect on the configuration to be extended at the next run step. Therefore, and reflect the priorities between maintaining similarity to and the distance to the goal. When we increase , the next extended configuration will be prone to the one which has smaller distance to the goal. Conversely, the configuration which has a smaller shape difference with will be preferred.

5.3. Local Planner and Roadmap Generation

After establishing the evaluation function and the neighboring relationship between and , the local planner can be constructed, the process of which is illustrated in Algorithm 2.

Input. , , The desired Configuration , Obstacle space , ,
Output. Local path which connects and
(1)    Initialize a priority queue
(2)    SUCCESS = false;
(3)    Insert   into
(4)    while   is not empty and SUCCESS = false do
(5)           = Dequeue()
(6)          for every neighbor configuration   in = Generate_neighbor_configuration()
(7)                if   is collision-free with
(8)                      Insert   into according to the improved evaluation function
(9)                end if
(10)              if   =
(11)                      SUCCESS = true
(12)              end if
(13)          end for
(14)    end while
(15)    if SUCCESS = true
(16)          return the constructed path by tracing the configuration from to
(17)    else  return  failure
(18)    end if

In Algorithm 2, represents a list whose elements are all the neighbor configurations of the current ones updated by Dequeue(), that is, the first element in . Moreover, the neighbor configuration of is generated by moving its boundary grids on the basis of the compact property or rotating in one run step.

It must be noted that, in Section 5.1, the expression “node neighbors” means the configuration nodes that satisfy the condition in (2). In order to generate the neighbor configurations of , a local coordinate system is defined with its origin coinciding with the center grid of and -axis aligning with the direction of . There are two ways to generate the neighbor configurations of in one run step. One is moving the boundary grids in the direction of -axis or -axis with a distance unit and according to the compact property; the other is rotating with a predefined angle unit . The detailed process is illustrated in Algorithm 3.

Input.  , Obstacle space , , ,
Output.  A neighbor list of
(1)    Initialize a queue , Initialize a list
(2)    Clone from
(3)    if all grids in boundary grid of have no collision-free neighbors
(4)        return null
(5)    end if
  Step  6–8 are used to rotate /
(6)    if   is collision-free
(7)        add into
(8)    end if
  Step  9–23 are used to moving the boundary grids of   according to the compact property  /
(9)    let represent the kth boundary grid of , num represents the total number of
boundary grid of
(10)    for ( = 1; <= num; ++)
(11)        if   have collision-free neighbors
(12)          let be the vector from to one of its free neighbors with step size of or
(13)           add + to and add all other grids in except into a queue
according to the distance to
(14)      while   is not empty
(15)                    = Dequeue(Q)
(16)                  if   + is collision-free, add + to
(17)              else add + to , where is the new direction which ensures the gird-set
satisfying the compact property
(18)                  end if
(19)      end while
(20)          add into
(21)        end if
(22)    end for
(23)    return  

Compared with previous researchers’ works, Algorithm 3 has the advantage of keeping the group’s area constant in the planning. After the above procedures, the roadmap is constructed.

5.4. Querying

When performing a query, we connect the start and goal configurations to the roadmap and determine the shortest path in the roadmap between them. The querying procedure in our approach is the same as the one in classic PRM algorithm. The difference is that, in every node of the roadmap, we make use of the improved evaluation function once again. So the evaluation function at the th node of the roadmap can be represented as

By allocating different values of and , we can influence whether we prefer a path that is short but has lots of deformation relative to or a path that is longer but with less deformation.

Complexity Analysis. The computational cost of our approach comes from the above three stages. In the stage of generating configuration nodes, we generate position samples by the medial axis technique and extend each position sample into group’s configuration samples in dimensions. In the second stage, the local planner is to connect any two neighbor configuration samples. We use the formulation for times to compute the minimum distance from the grid to and use Algorithm 3 to generate the neighbor configurations of for times at most. In the third stage, the evaluation function in PRM algorithm at every node of the roadmap is called times. Then the complexity of our planner is which is equivalent to .

Through the analysis of the corresponding computational complexity, the computational cost of the classic C-L method is vast; however, the configuration nodes extended from position samples in the first stage can provide guidance for the local planner and reduce the complexity of our approach.

6. Results

In this section we will show some experiment results of the approach described above. The experiment environment is in 3D, and we use two experiments to test our approach. The experiment environments are illustrated in Figure 5 in which there are four corridors A, B, C, and D, respectively. The widths of them are  m,  m,  m, and  m. In experiments 1 and 2, the desired shape of the group is a square which size is . And we discretize the group into 25 grids with the size of . The initial and goal configurations are placed in Figure 5. and are set to the size of the grid, that is, . is set to .

Firstly, the medial axis technique is used to generate 100 position samples. And 12 position samples are discarded because they are too close to the obstacle boundaries. Then we use Algorithm 1 to extend the remaining ones into 88 configuration samples, part of which are illustrated in Figure 6. In experiments 1 and 2, we set , and , , respectively. Experiment 1 and experiment 2 were implemented using Microsoft Visual C++ using the Solid collision detection package [23] and run on an Intel Core i5-2400 CPU @ 3.10 Ghz with 4 GB internal memory. The results are depicted in Figures 7 and 8.

Figure 7 depicts the shape difference between the group and the desired configuration at every step of our planning approach. Figure 8 depicts the distance between the group and the goal at every step. The experiment results show that when , , our approach selects the path across corridor A in experiment 1 and the path across corridor D in experiment 2. When , , our approach selects the path across corridor B in experiment 1 and the path across corridor C in experiment 2. These two paths are longer but have less deformation than the paths across corridors A and D. In Figure 7 we can see that because the initial configuration is different from the desired configuration, the group tries to make its shape approach the desired shape in the beginning of the planning steps. So, the shape difference declines before entering the corridors. When the group enters the corridors, the deformation begins. In the worst case (corridor D), the maximum shape difference equals  m. In the best case (corridor B), because its width is bigger than the size of the desired shape, the shape difference remains zero after reducing to zero. Therefore, increasing will make the group less deformed when passing through narrow corridors. However, this will lead to the increase of the distance from the group to the goal in some planning steps, as can be seen in Figure 8.

Moreover, the computational cost of C-L method is compared with our approach in the query phase in experiments 1 and 2. The results are depicted in Figure 9.

In Figure 9 we can see that our approach has a better performance than C-L method. This is because the configuration samples which are regarded as nodes of the roadmap provide guidance in planning the group’s path. Further, the computational time of our approach mainly comes from the collision detection of the boundary grids. So if there are two paths whose lengths are the same, the one which has more deformations will need more computational time.

Furthermore, in order to prove the effectiveness of our approach, we perform an experiment in a more complicated environment with more grids. The scenario can be depicted in Figure 10: there are some motionless vehicles which can be regarded as parts of obstacles, and the coherent group consists of a hundred virtual individuals.

Both the proposed approach and C-L method are used to plan a path connecting the initial and goal configurations of the coherent group. And the visualization simulation results of our approach in 3D space are illustrated in Figure 11. The experimental results show that the coherent group can find a path to reach the destination in the goal configuration and be collision-free with the obstacles.

Moreover, the computational cost of our approach is compared with C-L method in this experiment, and the comparison result is 627 s to 703 s, which means that our approach has a better performance than C-L method.

7. Conclusions

We present a novel planning method for the coherent group whose area is constant when moving toward the goal. Our approach has two advantages: compared with the method which is based on classic PRM or its variants, our approach embeds the discretization way of C-L method in local planner to keep the area invariant in the planning. Compared with C-L method, the medial axis technique in the preprocessing phase can provide guidance for generating roadmaps, which decreases the blindness of the C-L method. Moreover, different weights of and can produce different paths which have diverse features. And the computational cost of our approach means that it is suitable for planning paths for the coherent group.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgment

This paper is supported by the National Natural Science Foundation of China (Grants no. 61170160 and no. 61374185).