ROS electric
ROS package 생성
신영식
2014. 1. 7. 19:51
1. roscreate-pkg
# roscreate-pkg [package_name]
# roscreate-pkg [package_name] [depend1] [depend2] [depend3]
첫번째는 일반적 방법, 두번째는 의존성 추가해주는 방법
- roscreate-pkg 사용예제
package생성할 경로로이동$ cd ~/electric_workspace/sandbox
혹은
$ roscd
$ cd sandbox
ros package 생성하기
$ roscreate-pkg beginner_tutorials std_msgs rospy roscpp
rospack 에 새로운 정보 갱신
$ rospack profile
갱신된 정보 확인해보기
$ rospack find beginner_tutorials
갱신된 이후부터는 다음과 같이 이용가능
$ roscd beginner_tutorials
dependency 확인 방법
$ cat manifest.xml
$ rospack depends1 rospy
$ rospack depends beginner_tutorials