ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is it possible to implement ros in python GUI using tk

asked 2018-04-03 02:33:29 -0600

Nannapaneni gravatar image

I'm creating a GUI for robot operations. I have created one using TK. Now I want to implement ROS to the GUI. Is it possible to implement ros in that python TK GUI program? Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-04-03 04:34:10 -0600

Akash Purandare gravatar image

updated 2018-04-03 04:34:37 -0600

There are 2 ways to do this:

  1. If you have ROS installed in the place, where you are going to run Tk program, you can simply use rospy Subscribers to subscribe to topics, where you will get the data.
  2. If you want to run the Tk program in an OS, which doesn't have ROS, you can convert the messages to JSON format using rosbridge_suite and then use generic python packages to convert JSON to be compatible with your Tk package.
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-04-03 02:33:29 -0600

Seen: 313 times

Last updated: Apr 03 '18