-
Notifications
You must be signed in to change notification settings - Fork 169
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
Defining an agent with n="1" spawns no agent instead #67
Comments
n="1"
spawns no agent instead
I think you forget to add the type parameter in agent tag Also you should add the robot to the scene by adding type="2". Here is the scene file I have created before:
|
Hi, thanks for your answer. The example you provided works, however, if I remove any of the two agents (so only the robot or only the human is left) no agent gets spawn, regardless of if they have Is that an intended behaviour? |
I have the same problem. |
Hello @fverdoja and @fagnerpimentel, As far as I experience, the robot is spawned even you remove any of the two agent. If you can give precise information about what you want to do then maybe we can solve it. |
Hi, I am trying to run the simulator without the robot present to record people movement tracks. I would like to be able to spawn different amounts of (non robot) agents each time, but when I try to spawn one, no agent is spawn instead. |
Hi, @kivrakh thank you for the help. I just put a type 2 agent in my XML scenario as you show. But I agree with the @fverdoja. This may be not the intended behavior. This works: (1 person and 1 robot)
This works: (2 persons)
This not works: (1 person)
|
Hi guys, In this file, at lines 291-293: there is this condition:
I don't know why this is there but seems there is no problem if you remove it since this function is just to publish the agents. Just comment or delete these lines, run catkin_make and it is done.
|
Yep, that works @fagnerpimentel. Nice job! |
Hi,
I was trying to create a scenario where a single agent was defined.
Something like:
However, having agent with property
n="1"
doesn't actually spawn any agent. None is shown in rviz, and no pose is published in the corresponding topic. I tried also omitting then
property, or setting it ton="0"
andn="-1"
but it achieves the same effect. I tried also playing around withdx
anddy
to no avail.Is this a bug?
From the pedsim documentation it seems it should be possible:
If it is working as intended, is there any way to define a single agent instead of a group?
The text was updated successfully, but these errors were encountered: