I have a problem when rotating a text in \multirow cell table. The obtained rotated text is not well centered in the middle of the cell; additionally, the text seems to be not merged with the wanted cells.
Here is the code I'm using:
\documentclass{article}
\usepackage{graphicx,multirow}
\usepackage{adjustbox}
\usepackage{chngpage}
\usepackage{booktabs}
\begin{document}
\begin{table}
\caption{ Classifications of problems being studied in Swarm robotics.}
\label{tab:classification}
\centering
\begin{adjustwidth}{-.5in}{-.5in}
\begin{adjustbox}{max width=1.2\textwidth}
\begin{tabular}{p{0.4\textwidth} p{0.35\textwidth} p{0.32\textwidth} p{0.2\textwidth} p{0.15\textwidth}}
\toprule
Problematic &Sources of inspiration & Modeling approaches & Research literatures samples & Classification\\
\midrule
\textbf{Aggregation}: Clustering swarm robots in a region of the environment.
&
- Nature (e.g. Aggregation bacteria, cockroaches, bees, fish and penguins).
&
- Probabilistic finite state machines.\newline
- Artificial evolution.&
- [20] and [21] &
\multirow{4}{*}{\rotatebox[origin=c]{90}{Spatially organizing behaviors}}
\\
\midrule
\textbf{Pattern formation}: Deploying robots in a regular and repetitive manner from
which specific distances are kept between each other in order to create a desired
pattern. &
- Biology (e.g. the spatial disposition of bacterial colonies and the chromatic patterns on some animals). \newline
- Physics (e.g. molecules distribution and crystal formation).&
- Virtual physics-based design. &
- [22] &
\\
\midrule
\textbf{Chain formation}: Auto-Positioning robots to connect into two points. The
chain that they form can then be used as a guide for navigation or for
surveillance. &
- Foraging ants. &
- Probabilistic finite state machines.\newline
- Virtual physics based design.\newline
- Artificial evolution&
- [23] and [24] &
\\
\midrule
\textbf{Self-assembly and morphogenesis}: Connecting physically swarm robots to each other to create structures (morphologies). &
- Foraging ants. &
- Probabilistic finite state machines.\newline
- Virtual physics based design.\newline
- Artificial evolution &
- [23] and [24] &
\\
\midrule
\textbf{Collective exploration} &
- Social animals (ants, bees…). &
- Probabilistic finite state machines.\newline
- Virtual physics-based design.\newline
- Network routing &
- [26] and [27] &
\multirow{3}{*}{\rotatebox[origin=c]{90}{Navigation behaviors}}
\\
\midrule
\textbf{Coordination motion}: Moving in formation similarly to schools of fish or
flocks of birds. &
- Flocking in-group of birds.\newline
- Schooling in group of fish. &
- Virtual physics-based design.\newline
- Artificial evolution&
- [28] &
\\
\midrule
\textbf{Collective transport}: Cooperating in order to transport an object. &
- Cooperative carry prey in ant colonies.&
- Probabilistic finite state machines.\newline
- Artificial evolution &
- [29] &
\\
\midrule
\textbf{Consensus achievement}: Reaching consensus on one choice among different
alternatives. &
- Ants’ decision between the shorter of two paths using pheromones.\newline
- Bees’ decision between the best foraging area and the best nest location.\newline
- Aggregation in Cockroaches &
- Direct communication.\newline
- Indirect communication.
&
- [30] and [31]&
\multirow{2}{*}{\rotatebox[origin=c]{90}{Collective decision making}}\\
\midrule
\textbf{Task allocation}: Auto-distribution of swarm robots over different tasks To maximize the performance of the system. &
- Task allocation in ant and bee colonies. &
- Probabilistic finite state machines. &
- [32] & \\
\bottomrule\\
\end{tabular}
\end{adjustbox}
\end{adjustwidth}
\end{table}
\end{document}
c
(last column) or>{\centering\arraybackslash}p{0.15\textwidth}
instead ofp{0.15\textwidth}
(last column) with\usepackage{array}
.