pedsim_ros icon indicating copy to clipboard operation
pedsim_ros copied to clipboard

How to resize rviz obstacle and pedestrian agent size?

Open zerosansan opened this issue 1 year ago • 1 comments

Installation on ROS Melodic was successful and I managed to run all of the launch files. Is there a way to properly resize the obstacle (walls) and pedestrian agent size from the simulator's side? I can resize the walls and obstacles from Gazebo but the agents are floating around while moving.

rviz: Screenshot from 2022-10-01 21-14-38

Gazebo: Screenshot from 2022-10-01 21-15-01

zerosansan avatar Oct 01 '22 13:10 zerosansan

I found the file responsible for the Z-axis offset. So, I set it to 0.0 and that fixed the floating pedestrian problem in Gazebo.

https://github.com/srl-freiburg/pedsim_ros/blob/master/pedsim_gazebo_plugin/src/actor_poses_plugin.cpp#L101

const float MODEL_OFFSET = 0.75;

However, pedestrian agent and obstacle wall size need to be adjusted somehow. The agents are only moving within less than 2m x 2m space out of the entire 3m x 3m available space due to the large obstacle size and limited space from the thick 1x1m wall blocks.

zerosansan avatar Oct 01 '22 14:10 zerosansan