-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix Joint Position Controller Behaviour Described in #1997 There are several issues at play. First the target velcity calculation was wrong as described in #1997. Secondly, even if we corrected that there was still incorrect behaviour. This is due to the fact that we use the PID's CmdMax to determine what the maximum velocity for the joint is. However, in the event a user does not set a `<cmd_max>` this defaults to zero and the joint does not move. Finally this PR updates the tests. Previously our tests were only testing the case where the position command was well above the position's maximum velocity, hence it would slide into position. This PR introduces a test where we snap the position of the joint into place instead. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Address PR feedback with regards to style. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Just one more thing Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * style Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * More minor style fixes Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * More minor style fixes Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Tracks periodic changes in scene broadcaster (#2010) * Tracks periodic changes in scene broadcaster This commit proposes a change to the scene broadcaster which enables tracking of all components with periodic changes. This way if a component has a periodic change the scene broadcaster does not miss it. For more info see this discussion #2001 (comment) where @azeey proposes this solution. This commit is WIP and I still need to handle entity/component removal and add tests. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Rework changes * Removes clone made of BaseComponent. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * More reworks of added APIs to ECM. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Fix tests Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Add ECM related tests. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Address spelling issue Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> Signed-off-by: Arjo Chakravarty <arjo129@gmail.com> * Get rid of TODO Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> --------- Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> Signed-off-by: Arjo Chakravarty <arjo129@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> * Migrate to new header. Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Update test paths Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Update include/gz/sim/EntityComponentManager.hh Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org> Signed-off-by: Arjo Chakravarty <arjo129@gmail.com> * Rename methods Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * style Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Flipped data structure around Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> * Fix GCC warning Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> --------- Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai> Signed-off-by: Arjo Chakravarty <arjo129@gmail.com> Co-authored-by: Michael Carroll <mjcarroll@intrinsic.ai> Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
- Loading branch information
1 parent
8a4bc30
commit 7713f2b
Showing
7 changed files
with
379 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.