• Skip to primary navigation
  • Skip to content
  • Skip to footer
🌈 μ½”λ”©μ²˜μŒμž…λ‹ˆλ‹€λ§Œ 🌈
  • CV
    λ°•μ„±μ°½ (bigbigpark)

    λ°•μ„±μ°½ (bigbigpark)

    Interested in Robotics SW

    • GitHub
    • πŸ“‚ Useful Code
      • - C++(28)
      • - Python(17)
      πŸ“‚ Study
      • - 자료ꡬ쑰 (9)
      • - μ•Œκ³ λ¦¬μ¦˜ (1)
      • - μ½”λ”©ν…ŒμŠ€νŠΈ (10)
      • - λ‘œλ³΄ν‹±μŠ€ (1)
      πŸ“‚ LIBRARY / FRAMEWORK
      • - ROS(16)
      • - ROS 2.0(3)
      • - Point Cloud Library(17)
      πŸ“‚ Linux / Ubuntu
      • - 정리 자료(6)
      πŸ“‚ Tips
      • - Trouble Shooting(14)
      • - Installation(25)
      • - Latex Syntax(1)

    [ROS] Simple Python Node

    rospy λ…Έλ“œλ₯Ό λ§Œλ“€μ–΄λ³΄μž

    
    import rospy
    from sensor_msgs.msg import Imu
    
    rospy.init_node('python_node')
    
    sub = rospy.Subscribe('Topic name', Msg, callbackName)
    
    rospy.spin()
    
    

    Tags: install, node, publisher, python, ros, rospy, subscriber

    Categories: python_useful

    Updated: March 24, 2022

    이전 λ‹€μŒ

    Leave a comment

    • Follow:
    • GitHub
    • Feed
    © 2024 bigbigpark. Powered by Jekyll & Minimal Mistakes.