Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resize rviz obstacle and pedestrian agent size? #82

Open
zerosansan opened this issue Oct 1, 2022 · 1 comment
Open

How to resize rviz obstacle and pedestrian agent size? #82

zerosansan opened this issue Oct 1, 2022 · 1 comment

Comments

@zerosansan
Copy link

zerosansan commented Oct 1, 2022

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant