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.
'ROS GAZEBO' 카테고리의 다른 글
| imu 센서값 읽기 예제 (0) | 2019.05.06 |
|---|---|
| 가제보 조인트 고장 및 물리량 설정 방법 및 주의사항 (0) | 2019.05.06 |
| Gazebo plugin tutorials .zip (0) | 2019.05.05 |
| [중요] 가제보 퍼블리셔. 서브스크라이버 라이다 예제 (0) | 2019.05.05 |
| 가제보 월드 플러그인 (메세지로 객체 생성) (0) | 2019.05.05 |