How to display a topic on a window

asked 2018-08-17 04:00:10 -0500

BhanuKiran.Chaluvadi gravatar image

Hi,

I am trying to build a voice commands based navigation robot using tensor flow to spot key words, for example "Robot" ,"move" , "left", "right" etc. And also imagining to display a small GUI/window where it can display spoken track of single command to get a visual verification. Robot being an activation word and window keep tract of one full command - Robot move left / Robot move right etc. some thing like this .

   | ---------------------|
   |  Robot               | 
   |--------------------- |


   | ---------------------|
   |  Robot move          | 
   |--------------------- |


   | ---------------------|
   |  Robot move left     | 
   |--------------------- |

   | ---------------------|
   |  Robot               | 
   |--------------------- |


   | ---------------------|
   |  Robot move          | 
   |--------------------- |


   | ---------------------|
   |  Robot move right    | 
   |--------------------- |

Any suggestion on package or keywords for googling ?

Thanks

edit retag flag offensive close merge delete

Comments

I'm not sure if it's what you want but you can use a rviz marker of type View-Oriented Text (see section 1.3.10). When you get your command you publish it as a marker in rviz so that you can see your robot and the command in the same window.

Delb gravatar imageDelb ( 2018-08-17 04:12:17 -0500 )edit

Actually i am using gazebo for the robot simulation.

BhanuKiran.Chaluvadi gravatar imageBhanuKiran.Chaluvadi ( 2018-08-17 04:13:48 -0500 )edit

Yes Gazebo is used for emulating the physics but you can still have rviz to display more informations (I'm using Gazebo too but I prefer to monitor the robot behavior in rviz because you have markers, maps, tf etc..)

Delb gravatar imageDelb ( 2018-08-17 04:18:29 -0500 )edit

But if you don't want to use rviz isn't it good enough for you to just print the command you give in the terminal ? Anyway I would suggest you to check the rqt tutorials to create a GUI and #q238095

Delb gravatar imageDelb ( 2018-08-17 04:19:27 -0500 )edit

The only reason that i am not using rviz to display robot is that my robot has many parallel links that are constrained in motion(4 bar link mechanisms) and hence chose to write model in SDF format(No URDF file).

BhanuKiran.Chaluvadi gravatar imageBhanuKiran.Chaluvadi ( 2018-08-17 04:38:14 -0500 )edit

Oh okay I didn't know you couldn't use rviz, sorry

Delb gravatar imageDelb ( 2018-08-17 04:55:45 -0500 )edit