robotics-upo / hunav_sim

A simulator of human navigation behaviors for Robotics based on ROS2
MIT License
41 stars 8 forks source link

Human agents not recognizing the presence of the Robot #2

Closed SadeepRathnayaka closed 2 weeks ago

SadeepRathnayaka commented 3 weeks ago

When using the provided Gazebo wrapper, I encountered some unusual behavior in the example Gazebo world. Specifically, pedestrians sometimes pass through the robot (the green-colored man defined as the robot in this example) without acknowledging its presence. This issue does not occur if I change the agent behavior to "Impassive." For every other reaction, the crowd fails to notice the robot.

Additionally, there are certain objects in the Gazebo world that the pedestrians do not recognize as obstacles, resulting in them walking through these objects. I am uncertain whether these issues are avoidable or if they are still under development.

I have added two screenshots for the reference.

1_Screenshot: The agent does not recognize the box which is in the cafe world ( this box is already in the cafe.world, it has not been added separately to the world like cafe_table ), as a collision object. The agent will go through that object.

2_Screenshot: The green person is the robot. Other agent does not recognize the presence of the robot. When the agent's behavior parameter changes to "Impassive" then the people will avoid the robot treating the robot as a collision object. That is the only time people avoid the robot.

1_Screenshot

2_Screenshot

noeperez commented 2 weeks ago

Hi! Regarding the first screenshot, the cafe scenario is a model that includes several elements, like the floor, walls, or the grey box that you show in the image. Moreover, this model is included in the list of models that must be ignored by the agents. This needs be done in order to not colliding with the floor. So, it is normal than the agents can pass through those elements because they are ignored as obstacles.

Considering your second screenshot, I have fix some errors in the behaviors. In particular, the agents were ignoring the robot when their individual reactions are not active. It is fixed now, so you can pull the changes. Anyway, the models does not use the collision skeletons, so, in some cases, some parts of the bodies can pass through each other even if the repulsive forces are computed properly.

SadeepRathnayaka commented 2 weeks ago

Hi.

Thank you for the assistance. I will close this issue now.