SUBSCRIBER Node in ROS and debug with RQT_GRAPH | Tutorial #4 | ROS and Raspberry Pi

  Рет қаралды 10,637

Tiziano Fiorenzani

Tiziano Fiorenzani

Күн бұрын

Пікірлер: 18
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Follow the whole series kzbin.info/www/bejne/hGeuY3-NfJeeiKs
@indian2223
@indian2223 3 жыл бұрын
why not catkin_make after creating subscriber?
@mrpossible5696
@mrpossible5696 6 жыл бұрын
Thanks 😊
@sainco3036
@sainco3036 6 жыл бұрын
thanks.
@Benyaminmoadab
@Benyaminmoadab 3 жыл бұрын
how can qrcode detection with topic??
@gorilla543210
@gorilla543210 6 жыл бұрын
Nice video! Detail explained the code ! By the way, is the message variable also a pointer in python since it reference the string object? Thank you!
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Which line are you referring to? The callback?
@gorilla543210
@gorilla543210 6 жыл бұрын
@@prandtlmayer Yes, in line 11 to 12!
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Message is an argument passed by ROS when calls the callback function. It's of the same type you defined in the Publisher definition
@雷电-o1p
@雷电-o1p 4 жыл бұрын
What if we use array data type? Having a problem for sending the array to the subscriber...
@prandtlmayer
@prandtlmayer 4 жыл бұрын
What kind of problem?
@mehulahal9203
@mehulahal9203 3 жыл бұрын
The subscriber node does not start up. As confirmed by 'rosnode list' that only shows '/rosout' (no 'simple_subscriber'). But no errors either? How could I fix this? Update: I tried running it directly in the python shell (launch by /usr/bin/env python) followed by `import rospy` and `rospy.init_node('simple_subscriber')`, and it worked. Also it doesn't work for `test_pub_sub/src/test_subscriber.py`, but works for `python test_pub_sub/src/test_subscriber.py` ? Regards
@prandtlmayer
@prandtlmayer 3 жыл бұрын
You chmod?
@ShanaAndJeff
@ShanaAndJeff 6 жыл бұрын
Just found your channel. Great quality videos! Just curious why “if __main__” and not “def __main__”?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
thanks for your support. __main__ is not a function. It's just the argument python calls your script with. You can import a script or directly run it. In this latter case, the argument __main__ is set equal to "__main__" from python. The part in that if statement is executed only when you run the script and not import it
@ShanaAndJeff
@ShanaAndJeff 6 жыл бұрын
Tiziano Fiorenzani cool thanks for the explanation!
@abdessamedbenaissa8760
@abdessamedbenaissa8760 4 жыл бұрын
Thank you for the tutorial. Can we do the same thing with turtlebot3 burger ?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Yes you can! This is just an example, you can make it much better and apply the lessons learned here to your project. Don't forget to post your videos in the comment
Custom MESSAGES in ROS | Tutorial #5 | ROS and Raspberry Pi
5:21
Tiziano Fiorenzani
Рет қаралды 12 М.
ROS and SONARS for OBSTACLE AVOIDANCE | Tutorial #6 | ROS and Raspberry Pi
9:58
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
this BASH script will make you a MILLIONAIRE
19:20
NetworkChuck
Рет қаралды 738 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 291 М.
How to Build and Launch a NODE in ROS | Tutorial #1 | Ros and Raspberry Pi
9:12
ROS and Raspberry Pi for Beginners | Tutorial #0 - Topics Packages RosMaster
18:12
How to connect Kinect to Raspberry Pi 2 or 3 with ROS
6:18
Robotics Weekends
Рет қаралды 120 М.
Building a ROS Robot for Mapping and Navigation #1
19:53
James Bruton
Рет қаралды 231 М.
ROS and Arduino with ROSserial | ROS tutorial #10
16:04
Tiziano Fiorenzani
Рет қаралды 58 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН