Write a ROS2 Subscriber with Python - ROS2 Tutorial 8

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 12

  • @RoboticsBackEnd
    @RoboticsBackEnd  Год назад +2

    Thank you for watching!
    🔥 To go further with ROS2, check out this complete and step-by-step ROS2 course
    👉 rbcknd.com/ros2-for-beginners

  • @kolywang3209
    @kolywang3209 Год назад +5

    Very useful tutorial for the people who is totally new to the ROS2, would recommend to all the robotic interested.😀

  • @iloveanimals123-q7n
    @iloveanimals123-q7n 8 месяцев назад

    Simply beautiful

  • @quiquedediegohenar9253
    @quiquedediegohenar9253 Год назад

    I'm insteresting in doing ekf-slam using ROS2

  • @Baul454
    @Baul454 Год назад

    hello! I love you videos. but can we work on Pycharm instead of visual code

    • @RoboticsBackEnd
      @RoboticsBackEnd  Год назад

      Why not, you can use any text editor/IDE you want, as long as you make it work :)

    • @Baul454
      @Baul454 Год назад

      @@RoboticsBackEnd Thank you,

  • @Medil30
    @Medil30 Год назад +1

    I love you videos. I have been going through them one by one and got my first snag that I wasnt able to fix.
    once I get done creating the subscriber node. I do
    colcon build --symlink-install
    source ~/.bashrc
    then ros2 run my_controller pose_subscriber
    I get an error that it can find my package. I then tried ros2 run my_controller draw_circle and I get the same error.
    I can sun the the turtlesim
    I think the source got messed up but I dont know enough to fix it.
    here is what I have listed in my bashrc file:
    source /opt/ros/humble/setup.bash
    source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash
    source ~/dev_ws/install/setup.bash
    I read somewhere that I might need to source it in the install/setup.bash but I do not know what to enter
    any help would be great!!

    • @Medil30
      @Medil30 Год назад

      This is what I ended up doing as a work around. Probably not the best way but it works for now. I copied my py scripts, setup.bash, and package.xml to a fold on the desktop. Then I went back to "lesson 4" and created a new package called my_controller_2. Then built it. Copied over the files I backedup and did a another build. Now everything works in the new package. I still see 2 packages in my ws but it only sees my_controller_2 and not my_controller.
      In the future, how can I fix this or how can I remove the old package? Also how can I avoid it?

    • @Medil30
      @Medil30 Год назад

      NM. I left an cam back and now I have the same issue with new package I created. Im at my wits end haha

    • @RoboticsBackEnd
      @RoboticsBackEnd  Год назад +1

      In your situation I would remove completely the install/ and build/ folder of the workspace, then create a new package in the src/, build again, source, and try to run

    • @romainrouiller4889
      @romainrouiller4889 Месяц назад

      zsh terminal does that sometimes. Try to build the entire project again using bash.