ROS tutorial #2.1: C++ walkthrough of publisher / subscriber lab

  Рет қаралды 169,636

Justin Huang

Justin Huang

Күн бұрын

Пікірлер: 91
@tex792
@tex792 4 жыл бұрын
I've been trying to learn ROS for about 4 months now and have been making slow progress. This is probably the best tutorial I've seen in that time! Most examples are too simplified to be very useful, or they do not have enough explanation for a beginner. This one was great!
@milanky
@milanky 4 жыл бұрын
Check out this course www.udemy.com/course/ros-tutorials/?couponCode=ROSPROMO
@santhoshkumar-ty7pb
@santhoshkumar-ty7pb 3 жыл бұрын
@@milanky The content is good but the sound from the speech makes my ear pain.
@JatinChauhanJoy
@JatinChauhanJoy 7 жыл бұрын
At 03:00 Run these command to get there: cd ~/{catkin workspace location}/src/location_monitor/src for example: cd ~/catkin_ws_indigo/src/location_monitor/src and then to edit the cpp file: vim location_monitor.cpp OR gedit location_monitor.cpp
@Shanilka.Ariyarathne
@Shanilka.Ariyarathne 6 жыл бұрын
I'm using ros kinetic , can you please tell me how i do this, changing "indigo" into "kinetic" not work.
@sorenkaden8615
@sorenkaden8615 3 жыл бұрын
You probably dont give a shit but does someone know of a way to log back into an instagram account? I somehow forgot the login password. I appreciate any assistance you can offer me!
@simonphillip2048
@simonphillip2048 3 жыл бұрын
@Soren Kaden Instablaster =)
@sorenkaden8615
@sorenkaden8615 3 жыл бұрын
@Simon Phillip Thanks so much for your reply. I got to the site thru google and Im trying it out atm. Looks like it's gonna take quite some time so I will reply here later when my account password hopefully is recovered.
@sorenkaden8615
@sorenkaden8615 3 жыл бұрын
@Simon Phillip it did the trick and I now got access to my account again. Im so happy! Thanks so much, you really help me out :D
@lbv7
@lbv7 4 жыл бұрын
Incredibly helpful. You have no idea how much you have been a helping hand with this. Thank you very much, man.
@milanky
@milanky 4 жыл бұрын
Check out this course www.udemy.com/course/ros-tutorials/?couponCode=ROSPROMO
@hanjia3952
@hanjia3952 8 жыл бұрын
Thanks for the video! Missing something at 3:00.
@ahmedallam9612
@ahmedallam9612 6 жыл бұрын
I really appreciate the effort you put on to make such tutorial, THANK YOU
@sekomer
@sekomer 3 жыл бұрын
greatest tutorials on youtube, thanks
@Triangle893
@Triangle893 8 жыл бұрын
Justin, Can you please correct the video, you missed the piece at the point 03:01, where it jumps to code editor. Thanks! Nick
@runnercto
@runnercto 8 жыл бұрын
Bump
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+Nikolay Grigoryev Sorry about that! I probably won't get around to fixing it since I don't even remember what I was trying to say there. Hopefully future videos will redundantly explain whatever was cut out.
@trandrew96
@trandrew96 8 жыл бұрын
I understand what you were trying to explain but I don't know how you got to that file (it's a 'CMakeLists.txt' file for a location_monitor package, right?).
@YTdama1
@YTdama1 8 жыл бұрын
He wrote a simple application to subscribe the "adom" topic. You can see the formal ROS documentation about writing a simple publisher/subscriber application wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c%2B%2B)
@dirkiecool
@dirkiecool 5 жыл бұрын
You are the best. Thanks Justin
@khalidowlwalid4330
@khalidowlwalid4330 3 жыл бұрын
Really great tutorial! Love it!
@darshanrameshbhanushali4105
@darshanrameshbhanushali4105 5 жыл бұрын
thanks. i like the long version.. more information and experience being shared :) Thanks :)
@wc-jai667
@wc-jai667 4 жыл бұрын
please any one explain me in detail, after 3:00..... please!!!!! i created my workspace but when i use this: cd ~//src/location_monitor/src it shows "No such file or directory" HELP ME
@muhammadadilkhalil9681
@muhammadadilkhalil9681 4 жыл бұрын
Probably you haven't source your setup.bash file inside the dev folder...
@milanky
@milanky 4 жыл бұрын
Check out this course www.udemy.com/course/ros-tutorials/?couponCode=ROSPROMO
@wc-jai667
@wc-jai667 4 жыл бұрын
iam back.....and i am dum to ask this question :p
@danylomalyuta7411
@danylomalyuta7411 8 жыл бұрын
Justin, this is a fantastic tutorial - thanks a lot. You mention topics being covered in further videos, but it seems no more videos are beyond tutorial #2.2. What made you stop? I'm looking forward to more tutorials from you, in any case.
@ovidiurosu6632
@ovidiurosu6632 4 жыл бұрын
Amazing. Thank you very much :)
@tesla.8410
@tesla.8410 7 жыл бұрын
Please make more tutorials like this!
@fandrade9
@fandrade9 7 жыл бұрын
great work! nice and clear tutorial!
@elifcliff
@elifcliff 4 жыл бұрын
Thanks! It is so helpful!
@stillepic5174
@stillepic5174 3 жыл бұрын
how did he open a new terminal from the cpp terminal using 'wq' ?
@olubukolaogunsola5864
@olubukolaogunsola5864 4 жыл бұрын
I get and error on the FindClosest method, it says LandmarkDistance is not a type
@THEINDIANGEEKS
@THEINDIANGEEKS 7 жыл бұрын
Justin, [rosrun] Couldn't find executable named beginner_tutorials_node below /home/vag/catkin_ws/src/beginner_tutorials i am getting this error after following the steps shown in the video pls help me
@Claxiux
@Claxiux 8 жыл бұрын
Hi, it would be really valuable if you could upload your code somewhere so that we could have a detailed look. Thank you for your videos
@DutGi
@DutGi 8 жыл бұрын
Hi guys, missing piece seems to be: cd ~/catkin_ws_indigo/src/location_monitor/src vim location_monitor.cpp :)
@yan990332
@yan990332 8 жыл бұрын
Hi, thank you for pointing out. However, I am using another approach. 1st, create a package named "location_monitor" that includes the dependencies of roscpp and rospy (if you are using python as well). (see here: wiki.ros.org/ROS/Tutorials/BuildingPackages) Then, instead of using "catkin build", use "catkin_make" (in ~/catkin_ws folder) every time you make any changes in CMakeList, package.xml and the executable code. By following the rules above, you can build the exact project based on the tutorial provided by Justin Huang. Hope eveyone enjoy coding...
@parisrigakis1218
@parisrigakis1218 7 жыл бұрын
Bryan Loo Thanks a lot mate. I was stuck and your comment saved me.
@Shanilka.Ariyarathne
@Shanilka.Ariyarathne 6 жыл бұрын
I'm using ros kinetic , can you please tell me how i do this, changing "indigo" into "kinetic" not working.
@krisshcool6381
@krisshcool6381 6 жыл бұрын
@@yan990332 hello .if you have any video for create above one.could you please share with us
@MrBaristaPaul
@MrBaristaPaul 8 жыл бұрын
Hi Justin, thanks for the tutorial. I really enjoyed your first tutorial. I'm quite new to Linux and obviously ROS, and I couldn't follow this tutorial after the 3:00 mark where a section of the tutorial was erased. Could you fix this?
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+LanderNine Thanks for pointing it out. Unfortunately I probably won't get around to it, but hopefully future videos will repeat the steps and make it more clear.
@kashifzaheer7804
@kashifzaheer7804 5 жыл бұрын
add_dependencies (location_monitor_node location_monitor_generate_messages_cpp) cause catkin related problem, location_monitor_generate_messages_cpp of target "location_monitor_node" does not exit. how to solve policy related porblem (policy CMP0046)
@andrearomero3336
@andrearomero3336 8 жыл бұрын
When did you explained how you created the catkin workspace? :(
@olubukolaogunsola5864
@olubukolaogunsola5864 2 жыл бұрын
did anybody else get the error "only constructors take member initializers 17 | Landmarkmonitor(): landmarks_(){ " ?
@yugimuto5286
@yugimuto5286 4 жыл бұрын
Is there a repository for this code?
@rohankumaryadav707
@rohankumaryadav707 6 жыл бұрын
Please someone tell me how to start catkin work space from the video cut time?
@vinhk1382
@vinhk1382 8 жыл бұрын
Justin, how can I make the turtlebot go through a corridor when there is enough space and stop when there isn't enough space for it to go through?
@hemang12345
@hemang12345 8 жыл бұрын
Hi Justin, thanks for the video; it was super helpful. i didn't get how did you find the position of the structures in simulator like "cylinders", "Bookshelf" ?? Thank you
@anerdwitdacamera204
@anerdwitdacamera204 7 жыл бұрын
A stupid question you may have mentioned before: how to avoid typing "source opt/ros/xxxxx/setup.bash" every time I open a new terminal? Thanks!
@kid-vf4lu
@kid-vf4lu 8 жыл бұрын
Any pointers to setting up my own header files and their .cpp files in ROS? I have tried adding my .h files to include/package/ but it's not working.
@zishanahmedshaikh
@zishanahmedshaikh 7 жыл бұрын
Great job mate
@nova495
@nova495 7 жыл бұрын
I've been following the tutorial closely yet I can't autogenerate the LandmarkDistance.h file from the corresponding .msg file. Not sure what to do...
@ilhamakbar830
@ilhamakbar830 6 жыл бұрын
some clip video was missing at 03.01, there is more info about how to make the catkin workspace : wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment
@vladflorian2453
@vladflorian2453 8 жыл бұрын
Hello Justin, I also want to thank you for your videos. I am grateful for what you have described here and in the other tutorials about ROS. I am new to this environment, just started by approx. 1 month and your tutorials helped me a lot. I would appreciate if you make that tutorial about CMakeList and maybe a bit more talk about package.xml. I am working in C++ and knowing more about these two files I think it will help me a lot in my projects. Another mini question: I have a specific package written for Fuerte version of ROS and in that package beside the usual folders and files generated after the "catkin_make" command I have a lib folder and some .cpp files in the src folder of the package. In order to make the package functional in Indigo are there many things to be considered in the CMakeList file?
@paintedsnipe3808
@paintedsnipe3808 7 жыл бұрын
Hi Justin, Great tutorial. I hope you can find some time off to do more tutorials :-)
@kaankoc7793
@kaankoc7793 5 жыл бұрын
I want to print out the "seq" of the std/msgs. How do i do that?
@LongNguyen-ru5ry
@LongNguyen-ru5ry 8 жыл бұрын
can you do a basic video on gmapping to create a map and basic navigation using move_base? Thanks!
@FixedA
@FixedA 7 жыл бұрын
it's not always clear what buttons on the keyboard you press
@inventaunmanana4860
@inventaunmanana4860 6 жыл бұрын
hi, where do you get the objects coordinates (cube, bookshelf, etc) ??
@phadadev2307
@phadadev2307 6 жыл бұрын
Thanks a lot sir. :) :) :)
@田子杰-v1z
@田子杰-v1z 6 жыл бұрын
Good tutorial !!!
@rajeshnaiduundipalli6762
@rajeshnaiduundipalli6762 7 жыл бұрын
Broo..please sent that src file ..I have a problem in making location_monitor it's not executable..
@chaimabens1027
@chaimabens1027 7 жыл бұрын
Hi justin, I have a problem with catkin build i try to do the same steps but when I write the command catkin build i find that this command not found, I'm new in this environment
@napoleonampahjnr.6509
@napoleonampahjnr.6509 7 жыл бұрын
Go into the workspace folder and run catkin_make instead it works the same way
@harshitagarwal5188
@harshitagarwal5188 8 жыл бұрын
while running `catkin_make` from my workspace directory i was getting an error that `The specified source space "/home/harshit/ros_dir/src" does not exists` what may be the reason ?
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+Harshit Agarwal You may have already figured it out. I think that error occurs when you don't run catkin_make in the right folder. It needs to be in the root of the catkin workspace, so if your workspace is ~/catkin_ws, then that's where you need to run catkin_make from. If that's what you did, then I'm not sure what the problem is, sorry!
@hemang12345
@hemang12345 7 жыл бұрын
why is there is const Landmark& landmark = landmark_[i], cant it be simple Landmark landmark = landmark_[i] why do we need const object If some one could clarify
@RahmanUsta
@RahmanUsta 7 жыл бұрын
Can we find it as a text tutorial?
@nicholasbuenger2601
@nicholasbuenger2601 8 жыл бұрын
Is perfect! Now I understand everything better :D Thank you very much Ah, when is the next tutorial coming?
@dipinanda1
@dipinanda1 5 жыл бұрын
Nothing on Python?
@LongNguyen-ru5ry
@LongNguyen-ru5ry 8 жыл бұрын
Justin, thanks for the video! Your first tutorial was in Python, is it possible to do some of these in python?
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+Long Nguyen thanks for the kind words. I do plan on doing both Python and C++ for most of the time, so look for the Python version later!
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+Long Nguyen Python version is at kzbin.info/www/bejne/en25qpZvnbSpoZo
@saravanabalagi
@saravanabalagi 6 жыл бұрын
@@JustinHuang101 Please add it to the description please :)
@The_midnight_motivator
@The_midnight_motivator 5 жыл бұрын
I know c++ but iam not able to understand what u r trying to make us understand
@govindrao1640
@govindrao1640 8 жыл бұрын
Hi please tell me -> "robot operating system bidirectional nodes c++ programming"
@onurozbek2033
@onurozbek2033 4 жыл бұрын
Great tutorial buddy but you should not skip how you create things, especially the boiler plate code. Skipping details is not a good idea in a beginner's tutorial.
@designworks7347
@designworks7347 7 жыл бұрын
de need more video
@karimalaya1670
@karimalaya1670 8 жыл бұрын
cool tutorial can you make a video using python
@JustinHuang101
@JustinHuang101 8 жыл бұрын
+karim alaya I just did a Python version of this tutorial at kzbin.info/www/bejne/en25qpZvnbSpoZo
@savinorojas6836
@savinorojas6836 5 жыл бұрын
U lost me at 3 min :(
@quanglevan5020
@quanglevan5020 4 жыл бұрын
At 3:00 you should do: cd ~/your_workspace/src catkin_create_pkg location_monitor rospy nav_msgs cd ~/your_workspace catkin_make cd ~/your_workspace/src/location_monitor/ mkdir -p ~/your_workspace/src/location_monitor/src vim ~/your_workspace/src/location_monitor/src/filename.cpp
@jacopojacopo648
@jacopojacopo648 3 жыл бұрын
all I learned from this video is that you say a lot of : "uhm" and you skip from one page to another without explaining
@lebjam131
@lebjam131 6 жыл бұрын
DON"T WATCH MISSING SETUP WILL WASTE TIME!
@herrdesai6853
@herrdesai6853 4 жыл бұрын
how does a location monitor file appear in the src folder ? I have edited the c ++ code but cannot see the file in the folder . Please help me out . Thanks in advance
@milanky
@milanky 4 жыл бұрын
Check out this course www.udemy.com/course/ros-tutorials/?couponCode=ROSPROMO
ROS tutorial #2.2: Python walkthrough of publisher/subscriber lab
35:01
I made the same game in Assembly, C and C++
4:20
Nathan Baggs
Рет қаралды 839 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
Building a ROS Robot for Mapping and Navigation #1
19:53
James Bruton
Рет қаралды 230 М.
Arenas, strings and Scuffed Templates in C
12:28
VoxelRifts
Рет қаралды 101 М.
Coding with Notch (from Minecraft: The Story of Mojang)
3:57
2PlayerProductions
Рет қаралды 6 МЛН
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
Amazing Invention- This Drone Will Change Everything
21:32
Mark Rober
Рет қаралды 38 МЛН
(Life) Advice From The Creator of C++
3:18
Honeypot
Рет қаралды 968 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 333 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 911 М.
zig will change programming forever
9:34
Low Level
Рет қаралды 400 М.
How to REALLY learn C++
8:13
The Cherno
Рет қаралды 816 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН