[ROS Q&A] 186 – How to store value from a subscribed topic in ROS in Python

[ROS Q&A] 186 – How to store value from a subscribed topic in ROS in Python

About:
In the video of today, we are going to see how you can easily store a value from a subscribed topic into a variable in order to use it later for further purposes. In this case, we will use a global variable to do so.

? Subscribe for more free ROS learning: https://www.youtube.com/channel/UCt6Lag-vv25fTX3e11mVY1Q?sub_confirmation=1

RELATED ROS RESOURCES&LINKS:

ROS Development Studio (ROSDS) —▸ http://rosds.online
Robot Ignite Academy –▸ https://www.robotigniteacademy.com


Feedback

Did you like this video? Do you have questions about what is explained? Whatever the case, please leave a comment on the comments section below, so we can interact and learn from each other.

If you want to learn about other ROS topics, please let us know on the comments area and we will do a video about it 🙂

#ROS #Robot #rostutorials

[Morpheus Chair] Vector ROSDS CloudConnection | T2.Ep.4

[Morpheus Chair] Vector ROSDS CloudConnection | T2.Ep.4

About:
In this video, you are going to learn how to connect to the real Vector ROBOT through ROSDS using the real robot connection tools. You will also use a docker created by betaB0t to connect to VECTOR.

Commands to launch the docker in your local PC:

sudo docker run -e ANKI_USER_EMAIL=(EMAIL) -e ANKI_USER_PASSWORD=(PASSWORD) -e VECTOR_IP=(VECTOR_IP) -e VECTOR_SERIAL=(VECTOR_SERIAL) -e VECTOR_NAME=(VECTOR_NAME) –network host -e ROS_IPV6=on -e ROS_HOSTNAME=(NAME_OF_YOUR_DEVICE) -e ROS_MASTER_URI=http://master:11311 –add-host master:::1 –add-host (NAME_OF_YOUR_DEVICE):::1 -it betab0t/vector-ros-driver

If you don’t know the VECTRO related values, please have a look at the first video where we connected directly to VECTOR:

———————————————————————–
ROSject with Simulation and code Plug and Play:
http://www.rosject.io/l/908ce19/

Git from BetaB0t for Vector_ROS Package:

Git for the Real Robot Connection Setup:
https://bitbucket.org/theconstructcore/rosds_real_robot_connection/src/master/

Git of Vector and Cozmo Simulation:
https://bitbucket.org/theconstructcore/cozmo_simulation/src/master/

Install SDK in ALL OS:
https://developer.anki.com/vector/docs/initial.html

VECTOR API:
https://developer.anki.com/vector/docs/api.html

———————————————————————–

Here you can find the list of materials that you will need for this session:
Vector Robot: https://www.amazon.es/Anki-000-0079-Vector/dp/B078T42JCM
Vector Robot Playing Space ( recommended to avoid any problems with flying Vectors :P): https://www.amazon.es/Anki-000-0078-Habitat-Vector-Space/dp/B07G3QSX8G

———————————————————————————
Music:
Original Track:https://youtu.be/FBv6rm1lY0w
Thanks to NewRetroWave for letting us use their music.
Here more info:

New Retro Wave + Bachelor of Hearts Aurora Borealis

Smooth vibes for you retro soul. Listen and enjoy.
OUT NOW on NRW Records:
https://newretrowave.bandcamp.com/album/a-cosmic-funk-odyssey-ep
iTunes: http://apple.co/2r6N1T7

Support:

https://www.facebook.com/BachelorOfHeartsmusic/

Artwork provided by Murryous, who is our featured artist for May. Please support him:
https://www.instagram.com/murryous/

———————————————————————————

3D Models:
Orange Robot:
https://www.blendswap.com/blends/view/77718

Sphere Robot:
https://www.blendswap.com/blends/view/80818

Robot Parts:
https://www.blendswap.com/blends/view/78357

Mars Lander:
https://www.blendswap.com/blends/view/81264

#VECTOR #COZMO #ANKI #ROS #Robot #rostutorials #simulation to real

[ROS Q&A] 185 – 2D Drone Navigation (Part 4 Get Odometry from Laser readings)

About:
In the video of today, we are going to see how you can generate Odometry data from the Drone’s laser readings (using the rf2o_laser_odometry package). Then, we will use this Odometry data in order to perform Navigation.

Get the full code of this video with this ROSject Link –▸ http://www.rosject.io/l/913ce36/

? Subscribe for more free ROS learning: https://www.youtube.com/channel/UCt6Lag-vv25fTX3e11mVY1Q?sub_confirmation=1

RELATED ROS RESOURCES&LINKS:

ROS Development Studio (ROSDS) —▸ http://rosds.online
Robot Ignite Academy –▸ https://www.robotigniteacademy.com
Quadrotor simulation –▸ https://bitbucket.org/theconstructcor…
rf2o_laser_odometry –▸ https://github.com/MAPIRlab/rf2o_laser_odometry


Feedback

Did you like this video? Do you have questions about what is explained? Whatever the case, please leave a comment on the comments section below, so we can interact and learn from each other.

If you want to learn about other ROS topics, please let us know on the comments area and we will do a video about it 🙂

#ROS #Robot #rostutorials

[Morpheus Chair] Vector ROS Simulation | T2.Ep.3

[Morpheus Chair] Vector ROS Simulation | T2.Ep.3

.

What will you learn in this post

  • Learn how to launch the Vector simulation and how to launch a Red Ball tracking node using ROS and the
    package created by BetaB0t Vector_ROS

List of resources used in this post

More resources (for real robot)

 

Launching COZMO and VECTOR simulations

If you click in the ROSject provided above (http://www.rosject.io/l/908ce19/), you will get a copy of it on ROSDS (ROS Development Studio)

To launch it, you first need to open the ROSject clicking on the Open button.

Open Cozmo and Vector robots in ROSDS

Open Cozmo and Vector robots in ROSDS

Once the ROSject open, you just launch the simulation by clicking  Simulations–>Select Launch File, then you select  cozmo_gazebo main_cozmo.launch

Launch cozmo_gazebo main_vector.launch in ROSDS

Launch cozmo_gazebo main_vector.launch in ROSDS

If everything went ok, now you should have the simulation up and running:

cozmo vector running in ROSDS

cozmo vector running in ROSDS

You can launch cozmo and vector just by choosing between the main_vector.launch and main_cozmo.launch

You can access the camera, the forklift, the wheels (through the /cmd_vel ROS Topic), imu and the Infra-Red sensors form their corresponding topics. All the topics have the exact same name in the two different robots, except that you have to change the word vector for cozmo.

Launching the Simple Red Ball tracking

To do so you have to launch the simulation you want, in this case, we will launch the Vector simulation as described in the previous section.

Launch cozmo_gazebo main_vector.launch in ROSDS

Then open a Webshell from the Tools Bar (Tools -> Shell), and execute the following commands:

roslaunch vector_ros simple_ball_tracker.launch is_simulation:=true

You should then Open the Graphical Tools from the Tools menu to see the RedBall detection Gui:

Launching Graphical Tools in ROSDS

Launching Graphical Tools in ROSDS

You should then be able to see the robot camera:

redball seen by cozmo and vector in ROSDS

redball seen by cozmo and vector in ROSDS

If you now move the ball around with the move object icon of the 3D view, you can see how Vector follows the ball. You can also move the ball with the keyboard, which will send absolute position commands to the ball. You first need to run the launch file below:

roslaunch cozmo_gazebo move_redball.launch

Then use the Keys below:

i“=+X Axis,

k“=STOP,

j“=-Y Axis,

l“=+Y Axis,

,“=-X Axis:

 

Moving the robot around

With the ball tracking enabled, you can move the robot around using the command below in the web shell:

rosrun teleop_twist_keyboard teleop_twist_keyboard.py
Reccomended values:
    turn = 5.55991731349
    speed = 0.1937102445

Seeing the camera

In order to see the camera in the Graphical Tools, you can run rqt_image_view through the webshell using the command below:

rosrun rqt_image_view rqt_image_view

Now open the Graphical Interface as explained earlier by clicking Tools -> Graphical Tools.

Moving FORK and Head

Before publishing the positions of the fork, it is worth mentioning that the fork range is [0.0,-0.8]

Now, let’s go ahead and move it with the command below:

rostopic pub /vector/lift_height/command std_msgs/Floa4 "data: -0.8"

Now, to move the head we use the commands below. Also, important to note that the range of the head is [0.1,-0.57]

Let’s then move the head:

rostopic pub /vector/head_angle/command std_msgs/Float64 "data: -0.57"

 

Where is the IMU

To see the IMU of the robot, you can see the /imu topic using the command below:
rostopic echo /imu

Current known issues

We noticed that there is a drift that occurs when Vector or Cozmo is still.

SPECIAL THANKS:

Our special thanks to beat_b0t for creating the Vector_ROS package.

Also, thanks to TheConstructSim For creating the COZMO and Vector simulation package. and thanks to ANKI for creating COZMO and VECTOR real robots that we can use to play around and learn more about robotics.

Youtube Video

We hope you like the post. If you prefer, we also have a live version of this post in YouTube. You can find it in the link below. If you like it, please consider subscribing to our channel on youTube. We are constantly adding new ROS-related content.

 

———————————————————————————
Music:
Original Track:https://youtu.be/FBv6rm1lY0w
Thanks to NewRetroWave for letting us use their music.
Here more info:

New Retro Wave + Bachelor of Hearts Aurora Borealis

Smooth vibes for you retro soul. Listen and enjoy.
OUT NOW on NRW Records:
https://newretrowave.bandcamp.com/album/a-cosmic-funk-odyssey-ep
iTunes: http://apple.co/2r6N1T7

Support:

https://www.facebook.com/BachelorOfHeartsmusic/

Artwork provided by Murryous, who is our featured artist for May. Please support him:
https://www.instagram.com/murryous/

———————————————————————————

3D Models:
Orange Robot:
https://www.blendswap.com/blends/view/77718

Sphere Robot:
https://www.blendswap.com/blends/view/80818

Robot Parts:
https://www.blendswap.com/blends/view/78357

Mars Lander:
https://www.blendswap.com/blends/view/81264

#Vector #COZMO #ANKI #ROS

[ROS Q&A] 183 – 2D Drone Navigation with ROS (Part 3 Path Planning)

[ROS Q&A] 183 – 2D Drone Navigation with ROS (Part 3 Path Planning)

About:
In the video of today, we are going to see how to easily navigate your robot autonomously, with Path Planning, in an indoor environment using a drone and the ROS move_base node from the Navigation Stack.

Get the full code of this video with this ROSject Link –▸ http://www.rosject.io/l/8797919/

? Subscribe for more free ROS learning: https://www.youtube.com/channel/UCt6Lag-vv25fTX3e11mVY1Q?sub_confirmation=1

RELATED ROS RESOURCES&LINKS:

ROS Development Studio (ROSDS) —▸ http://rosds.online
Robot Ignite Academy –▸ https://www.robotigniteacademy.com
Quadrotor simulation –▸ https://bitbucket.org/theconstructcor…
depthimage_to_laserscan –▸ http://wiki.ros.org/depthimage_to_las…
Turtlebot Navigation –▸ http://wiki.ros.org/turtlebot_navigation


Feedback

Did you like this video? Do you have questions about what is explained? Whatever the case, please leave a comment on the comments section below, so we can interact and learn from each other.

If you want to learn about other ROS topics, please let us know on the comments area and we will do a video about it 🙂

#ROS #Robot #rostutorials

Pin It on Pinterest