Skip to content

Possible to read robot_description from topic#34

Merged
sangteak601 merged 21 commits intomoveit:mainfrom
pucciland95:main
Apr 20, 2025
Merged

Possible to read robot_description from topic#34
sangteak601 merged 21 commits intomoveit:mainfrom
pucciland95:main

Conversation

@pucciland95
Copy link
Contributor

Hi,

first thing: thank you for developing this repo. It is very useful.
I noticed that it is necessary to pass the robot_desciption as a param from the launch file.
Since our ROS2 stack requires it to be passed from topic I added this functionality. Therefore, it is not necessary anymore to pass it from the launch file.

Let me know what you think and whether it is useful

Copy link
Member

@eholum eholum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pucciland95! Definitely seems like the right way to go for me. Just adding some comments from the peanut gallery.

@pucciland95
Copy link
Contributor Author

Hi @eholum and thanks for reviewing,

I should have made all the changes you asked for. Let me know if you think there is still some more work to be done.

Cheers,

Niccolo

Copy link
Member

@eholum eholum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pucciland95! Sorry if my comments opened a few more questions... There are some param layering questions that I had.

@pucciland95
Copy link
Contributor Author

Thanks @pucciland95! Sorry if my comments opened a few more questions... There are some param layering questions that I had.

Don't worry, it is totally fine 😄
I answer to all your comments. Feel free to make as many comments as you like

Copy link
Member

@eholum eholum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

I will have to defer to @sangteak601 and whether or not he wants to take a look as well, though.

Co-authored-by: Erik Holum <7966037+eholum@users.noreply.github.com>
Copy link
Member

@sangteak601 sangteak601 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution. It looks great and will definitely improve usability. I have just a few comments.

pucciland95 and others added 5 commits March 9, 2025 12:50
Co-authored-by: SangtaekLee <82325867+sangteak601@users.noreply.github.com>
Co-authored-by: SangtaekLee <82325867+sangteak601@users.noreply.github.com>
Co-authored-by: SangtaekLee <82325867+sangteak601@users.noreply.github.com>
Co-authored-by: SangtaekLee <82325867+sangteak601@users.noreply.github.com>
@pucciland95
Copy link
Contributor Author

pucciland95 commented Mar 9, 2025

After applying all the requested changes the code crashes since the cm_executor_ is neither passed from the outside of the init() function nor defined inside it.
The controller_manager needs both it as an argument to be spinned:

controller_manager_ = std::make_shared<controller_manager::ControllerManager>(
  std::move(resource_manager), cm_executor_, "controller_manager", node_->get_namespace());
cm_executor_->add_node(controller_manager_);

An executor needs to be present for this code to work either by passing it from outside the MujocoRos2Control or defining it in the init() function.

@sangteak601
Copy link
Member

Please check my other comments link1 link2.

@pucciland95
Copy link
Contributor Author

pucciland95 commented Mar 25, 2025

Hi, can I have feedback on the changes?

I would like to detach my fork since I want to bring the repo in another direction, but I think if I do, I break the PR. Therefore, before detaching, I would like to close this PR.

Copy link
Member

@eholum eholum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay @pucciland95! This all continues to work for me. Added a note about the executor stuff, which I also don't think is a big deal since there's still some cleanup todo around nodes and threading that should be handled in a later PR.

@pucciland95
Copy link
Contributor Author

Reverted spin to spin_once as requested

@pucciland95
Copy link
Contributor Author

Just a gentle ping

@sangteak601
Copy link
Member

Thank you for the reminder. The conflicts should be resolved before this can be merged.

@pucciland95
Copy link
Contributor Author

Fixed merge conflict

Copy link
Member

@sangteak601 sangteak601 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you again for your contribution!

@sangteak601 sangteak601 merged commit 9e82f24 into moveit:main Apr 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants