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!!
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?
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
Thank you for watching!
🔥 To go further with ROS2, check out this complete and step-by-step ROS2 course
👉 rbcknd.com/ros2-for-beginners
Very useful tutorial for the people who is totally new to the ROS2, would recommend to all the robotic interested.😀
Simply beautiful
I'm insteresting in doing ekf-slam using ROS2
hello! I love you videos. but can we work on Pycharm instead of visual code
Why not, you can use any text editor/IDE you want, as long as you make it work :)
@@RoboticsBackEnd Thank you,
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!!
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?
NM. I left an cam back and now I have the same issue with new package I created. Im at my wits end haha
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
zsh terminal does that sometimes. Try to build the entire project again using bash.