ROS_python_정리/ros 명령어 모음

ros 명령어 자주쓰는거만

알 수 없는 사용자 2022. 6. 8. 14:11

node 관련

rosnode -h

노드 키거나 끄거나 할때


topic 관련

rostopic -h

- echo , list , find , pub , info 같은거로 topic 발행 때릴 때 이럴때 씀

 

rosmsg -h

- topic의 msg 타입을 검색하거나 할 때

 

rostopic pub topic_1 std_msgs/String "data : 'aa'"
rostopic echo topic_2

 

 


service 관련

rosservice -h

- call 같은거로 service 에 request 신호 보낼때 씀

 

rossrv -h

- service 메시지 타입 검색하거나 할 때


특정 msg 타입 확인하려면

1. rostopic list 로 특정 노드 확인하고

2. rostopic info 로 특정 노드의 정보 확인 ( Type 에 대한 값이 나온다 )

3. rosmsg show 로 특정 메시지 Type 값을 확인한다.

ex) 사진