ROS GAZEBO
토픽 생성
hellobird
2019. 5. 6. 03:49
Control Velodyne from ROS
We can now load the Gazebo plugin as usual, and it will listen on ROS topic for incoming float messages. These messages will then be used to set the Velodyne's rotational speed.
Start
roscoresource /opt/ros/<DISTRO>/setup.bash roscoreIn a new terminal, start Gazebo
cd ~/velodyne_plugin/build source /opt/ros/<DISTRO>/setup.bash gazebo ../velodyne.worldIn a new terminal, use
rostopicto send a velocity message.source /opt/ros/<DISTRO>/setup.bash rostopic pub /my_velodyne/vel_cmd std_msgs/Float32 1.0Change the last number of the above command to set different velocities.