robocup-logistics / gazebo-rcll

Gazebo Models, Plugins, and World Files for the RoboCup Logistics League
GNU General Public License v2.0
17 stars 12 forks source link

initialize all pucks with caps in OnUpdata function #46

Closed djh95 closed 2 years ago

djh95 commented 2 years ago

It seems that we cannot initialize all 4x3 (4 cap stations, 3 pucks each) pucks at the same time. Commands may be overwritten when they get too many commands at once. So I initialize the pucks in the OnUpdata function, which is called periodically, each time each cap station initializes a puck. But it's not perfect, we always have to wait a few seconds to see the caps. I think the reason is that the pucks are generated immediately when the cap station is created, but it can be initialized with caps only after getting the puck model in the function on_new_puck . This will take some time.

71cf1fa96d7369d4dfc2947a1a5fee2
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.