-
Notifications
You must be signed in to change notification settings - Fork 12
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
Creating custom human models #9
Comments
Hello, |
Hello, I have followed exactly the same path you mentioned above. But still those human agents are not added to the simulation. I have used skin as 5 in agents.yaml file. Also I have done following customizations. After that it worked but not always. Sometimes it works sometimes it doesn't. Added the following code snippet in HuNavPlugin.cpp in hunav_gazebo_wrapper/src line 765. case 5: Added this line in actor_panel.cpp in hunav_rviz2_panel/src line 232 skin_combobox->addItem("Child"); Added this line in actor_panel.cpp in hunav_rviz2_panel/src line 1203 else if (aux.compare("Child") == 0) // added Added this line in actor_panel.cpp in hunav_rviz2_panel/src line 1257 else if (skin == 5) I only have a rough idea about what these codes and scripts are doing. But after doing those changes that custom model was spawned in the simulator. But for the same code, when I run it again sometimes that custom build human agent does not spawned. |
Hi! |
Would you mind telling about the changes that I have to do in HuNavPlugin.cpp ? Also I guess I will have to use skin : 5 in agents.yaml since I have created a new skin for the model ? This is the updated version of the processXML function in WorldGenerator.cpp. I have added child.dae at the end of the skin_filename array. std::string skin_filename[] = { "elegant_man.dae", "casual_man.dae", "elegant_woman.dae", "regular_man.dae", std::string animation_filename[] = { "07_01-walk.bvh", "69_02_walk_forward.bvh", "137_28-normal_wait.bvh", I have not changed anything in animation_filename. Only the skin_filename. |
I have followed the PDF on creating custom human models and did all the things exactly.
After that how can I set the skin number for that model and use the agents.yaml file to configure to use that model?
I would really appreciate if you could give further instructions on how to add that custom-made human agent to the gazebo simulation.
The text was updated successfully, but these errors were encountered: