ROS2 Study
-
11 week HW (3) Command line argumentROS2 Study 2021. 11. 16. 13:45
$ ros2 run $ ros2 run 1. revise action client node to command argument in code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 # add modul..
-
11 week HW (2) Parameter programmingROS2 Study 2021. 11. 16. 12:59
review https://needs-searcher.tistory.com/181 6 week HW Parameter control using turtlesim node Experiment of ROS2 parameter, RQt, and ROS2 package installation 1. parameter 2. ROS2 tools - Command Line Tools https://github.com/ubuntu-robotics/ros2_cheats_sheet/blob/master/cli/cli_cheats_shee.. needs-searcher.tistory.com command list see a list of parma $ ros2 param list get value of a param $ ro..
-
11 week HW (1) action programming : action client nodeROS2 Study 2021. 11. 14. 17:36
1. write "fibonacci_action_client.py" code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 import rclpy # import ActionClient class to make actionclient from rclpy.action import ActionClient from rclpy.node import Node # import Fibonacci interface type from my_interface_example.action i..
-
10 week HW (3) action programming : action server nodeROS2 Study 2021. 11. 9. 17:48
1. make package 2. make python file 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 import rclpy # import ActionServer class to make actionserver from rclpy.action import ActionServer from rclpy.node import Node # import Fibonacci interface type from my_interface_example.action import Fibonacci class FibonacciAction..
-
10 week HM (1) service programmingROS2 Study 2021. 11. 9. 11:46
Message, Service interface programming - Test the created msg interface [pub_node] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 import rclpy # Node class import. In Node class, there are create_publisher(), create_timer()..
-
8week ROS homework : Simple node code explainROS2 Study 2021. 10. 25. 22:16
#1 Create Topic msg 1. Write code [helloworld_publisher.py] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 import rclpy # Node class import. In Node classm, there are create_publisher(), create_timer(), get_logger() and so on. from rclpy.node i..
-
ROS homework week7ROS2 Study 2021. 10. 18. 10:24
1. Create Package [for cpp] [for python] 2. Build Package 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 ROS2 package files 1. for cpp package.xml CmakeList.txt 2. for python package.xml setup.py essential optional only python $ . install/setup.b..