The turtlesim_dash_tutorial package
- Maintainer status: maintained
- Maintainer: Siddhartha Banerjee <banerjs.sid AT gmail DOT com>
- License: MIT
- Source: git https://github.com/banerjs/turtlesim_dash_tutorial.git (branch: melodic-devel)
The default launch file included in this package, tutorial.launch brings up a turtlesim environment and starts turtle_actionlib's shape_server node. As mentioned in the documentation for turtle_actionlib, the node is designed to control the simulated turtlebot so that it traces out a polygon of a specified radius with the desired number of edges.
The launch file also starts a Dash webserver on the port 8080. On navigating to that URL, you should see a web page like so:
There are 3 elements to the page that you can play with:
The input boxes set the number of edges and the radius of the polygon that the turtlebot should trace out in the simulated environment. Hitting the Trace Shape button sends those parameters to the shape_server if the values are valid.
The shape server's status is shown below the inputs. This is simply the status of the ROS actionlib server.
- The graph plots the last 30 seconds (approximately) of the turtlebot's pose and velocity in the simulator.
Here is an example of the page as the turtlebot is executing a ShapeGoal:
Install turtle_actionlib: sudo apt install ros-melodic-turtle-actionlib
Install the pip dependencies (in a virtualenv if need be): pip install -r requirements.txt
- Create a catkin workspace and include this package in it. Build the workspace.
To test your installation, source the newly created workspace and run:
roslaunch turtlesim_dash_tutorial tutorial.launch
Creates a dash server on the port 8080; navigate to http://localhost:8080 in order to view it.