본문 바로가기
기계공학부 시절의 기록/ROS2 Study

ROS homework week7

by juhyeonglee 2021. 10. 18.
728x90
반응형

1. Create Package

[for cpp]

 

 

 

[for python]

 

 

 

 

2. Build Package

build all package
build a package
build a packge by using symlink

 

 

 

3. Dependencies Problem Solving

 

$ sudo rosdep init

$ rosdep update

$ rosdep install -i from-path src --rosdistro foxy -y

$ rosdep install -i from-path sr --ignore-src --rosdistro foxy -y --skip-keys

 

 

error

 


ROS2 package files

 

1. for cpp

package.xml

CmakeList.txt

2. for python

package.xml

setup.py

 

essential

optional

 


 

only python

 

 

 

$ . install/setup.bash

$ ros2 run my_first_ros_rclpy_pkg helloworld_subscriber 

 

 

728x90
반응형

댓글