Have a look at this tutorial on how to write a ROS publisher in a python script http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28python%29
In the same script you can then also import NEST (import nest) and set up your network.
Be aware that simulations with this setup will not be deterministic, since both physics simulation in CopeliaSim and neural simulation in NEST just take as long as they need for one simulation step, and this depends heavily on the computer performance and model/network implemented. You would need to step both CopeliaSim and NEST in order to achieve deterministic simulations, but I am not sure if and how this would work with CopeliaSim.
Best,
Benedikt
On 25.05.22 18:09, salvatore.taffara@phd.unict.it wrote:
"The easiest solution would probably be to use NEST in python, and then in the same python script set up your ROS publisher that sends data over to your ROS subscriber in CoppeliaSim"
How can I use Ros in a Nest script if in Nest there is not a Ros interface with API functions? _______________________________________________ NEST Users mailing list -- users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.org