Robotics StackExchange | Archived questions

how can I access data in a ROS topic from a python script in Colab

Hi,
I want to do some soft body simulations in PyBullet for which I need a data published from a ROS topic (I need to get joint states of haptic device). Since doing soft body simulation is resource intensive, the simulations are slower in my laptop (in this case with the help of rospy, I was able to subscribe to that data and use it). So I would like to know that How can I access the data published in that ROS topic from a Python script in Colab(Google Colaboratory) ? . I think I need to use some tools like rosbridge_suite but I don't know how to go with it.

I use ROS Noetic in Linux Mint Cinnamon 20.3 (based on Ubuntu focal). Also Is there any easy alternative to using Colab ?

Asked by annamalai on 2023-06-26 06:01:42 UTC

Comments

Answers