.launch
file to launch all the nodes at once./cmd_vel
messages tell a mobile robots 'base' to move in all the possible directions/cmd_vel
is Twist
linear
and angular
.x
, y
, and z
.rostopic
and rosmsg
to examine /cmd_vel topic and Twist messagecmd_vel
key_publisher.py
in the samples
package. If it's not there try doing a git pull.roscore
running somewhere)rosrun samples key_publisher.py
rostopic echo keys
key_publisher.py
?keys_to_twist.py
in the samples
package.rostopic
echo. This will require two terminals!keys_to_twist_using_rate.py
in the samples
package.. If it is not there try doing a git pull.$ rqt_plot
to view the information in a graphcmd_vel/angular/z
and cmd_vel/linear/x
keys
keys
and generates cmd_vels based on decodecmd_vel
is published at a constant steady streamkeys_to_twist_using_rate.py
which to me is not a great DesignParameter server is 'built into' roscore
and is a simple 'key/value' store
Private and Public Parameters
In this example we are running a script and at the same time assigning values to two private parameters
keys_to_twist/linear_scale
and keys_to_twist/angular_scale
with values of 0.5 and 0.4 respectively
rospy.has_param('~linear_scale') # => returns True or false
rospy.get_param('~linear_scale') # => returns 0.5
~
tilde preceding the parameter name means that the parameter is "private", which means that it is prepended with the node's name-
hyphen preceding the parameter in the command line argument, means the same thing!
$ ./keys_to_twist_parameterized.py _linear_scale:=0.5 _angular_scale:=0.4
keys_to_twist_with_ramps.py
$ roslaunch turtlebot3_gazebo turtlebot3_world.launch
$ roslaunch turtlebot3_gazebo turtlebot3_world.launch model:="NAME OF MODEL"
roscd turtlebot3_gazebo
) you will see different 'worlds'. These correspond to different initial configurations of obstacles, walls, bookcases, and so on.
$ roslaunch turtlebot3_fake turtlebot3_fake.launch
# In a terminal window:
$ roslaunch turtlebot3_bringup turtlebot3_remote.launch
In a second separate terminal window:
$ rosrun rviz -d
rospack find turtlebot3_description
/rviz/model.rviz