CoppeliaRobotics / simURDF

CoppeliaSim plugin that offers a URDF importer
Other
12 stars 9 forks source link

How to create a sim_message_eventcallback for URDF plugin? #4

Closed GilmarCorreia closed 2 years ago

GilmarCorreia commented 2 years ago

Hello CoppeliaSim Developers,

I'm a researcher working with the new CoppeliaSim version (4.3.0 rev3), and I'm trying to develop a coppeliasim_ros2_control plugin to work and spawn controllers inside CoppeliaSim using ros2_control. The problem that I'm facing is requiring an understanding of the Coppelia Sim architecture.

How can I create a function inside Plugin.cpp that knows when simURDF.import() been called? For example:

onURDF_plugin(std::string urdf_contents)

If what I imagine is correct, I will need to create a sim_message_eventcallback_urdfplugin? How can I do it?

Thank you,

Coppelia commented 2 years ago

Hello Gilmar, please contact us

GilmarCorreia commented 2 years ago

Thank you! Problem solved!