Robotic Perception and Action

Slides:



Advertisements
Similar presentations
Teaching Assistant: Roi Yehoshua
Advertisements

Microsoft Word 2010 Lesson 1: Introduction to Word.
Teaching Assistant: Roi Yehoshua
Teaching Assistant: Roi Yehoshua
Teaching Assistant: Roi Yehoshua
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Getting Started with Dreamweaver
Teaching Assistant: Roi Yehoshua
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
XP Tutorial 7 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Working with Graphics Tutorial 7.
Teaching Assistant: Roi Yehoshua
Getting Started with Expression Web 3
1 Lesson 6 Exploring Microsoft Office 2007 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Teaching Assistant: Roi Yehoshua
How to make an interactive PowerPoint in which you will….. Add hyperlinks to move to different parts of the presentationAdd hyperlinks to move to different.
Intro to ArcGIS 9 Edited 10/14/05 1 Introduction to ArcGIS 9 Before you can start on your school mapping project, you will need to become acquainted with.
Teaching Assistant: Roi Yehoshua
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
Using Tiled. What is Tiled? It’s a level editor It allows game programmers to create their 2D game world with ease.
Main Navigation  Similar to Unity 3D  Unlike Unity it is a right handed coordinate system  Used to determines whether a positive rotation is clockwise.
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
Ling Chen ( From Shanghai University 1.
Teaching Assistant: Roi Yehoshua
Introduction to Microsoft publisher
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
WS1-1 ADM740, Workshop 1, June 2007 Copyright  2007 MSC.Software Corporation WORKSHOP 1 OPEN AND RUN AN ASSEMBLY.
Lab 0 / Chapter 0 Windows XP Environment. 2 User Interfaces: A different perspective.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
PREZI PRESENTATION The Prezi Interface. In this tutorial you will learn:  About the different parts of a Prezi interface: 1. The Prezi space/canvas 2.
Inserting Hyperlinks  Purpose : Enables viewers to click the link and move directly to a slide  Directions : Make one link on slide one to move to each.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
File and File Systems Compiled by IITG Team Need to be reorganized and reworded.
Learning the Basics of ArcMap 3.3 Updated 4/27/2010 Using Arc/View pt. 1 1.
Lecturer: Roi Yehoshua
Getting Started with Dreamweaver
Lecturer: Roi Yehoshua
Lesson 11 Exploring Microsoft Office 2007
EEC-693/793 Applied Computer Vision with Depth Cameras
Using the Cyton Viewer Intro to the viewer.
Jacob White and Andrew Keller
Weebly Elements, Continued
Layers in Adobe After Effect
Lecturer: Roi Yehoshua
EEC-693/793 Applied Computer Vision with Depth Cameras
Presenting Prezi Michael Pelitera
Prezi.
EEC-693/793 Applied Computer Vision with Depth Cameras
Powerpoint Essentials
Introducing Microsoft Office 2010
Windows Internet Explorer 7-Illustrated Essentials
TIGERBOT 2 REJUVENATION
Question 1: What key on the keyboard is used to create a proportional shape? Control Key Tab Key Shift Key Delete Key.
Introduction to ArcGIS 9
NORMA Lab. 7 Generating Reports More Display Options
© 2016 Blackboard Inc. All rights reserved..
Chapter 2 – Introduction to the Visual Studio .NET IDE
Robotic Perception and Action
Cell Simulation.
Learning the Basics of ArcMap 3.3 Updated 4/27/2010
Getting Started with Dreamweaver
Quick Introduction to ROS
Robotics and Perception
EEC-693/793 Applied Computer Vision with Depth Cameras
Robotic Perception and Action
Robotic Perception and Action
Microsoft Windows 7 Basics
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Robotic Perception and Action RVIZ

Visualization of Vehicle Robot What is RVIZ? RVIZ GUI Displays Visualization of Vehicle Robot Scheme RVIZ Launch File RVIZ Initialization RVIZ Settings RVIZ Visualization Gazebo + RVIZ Gazebo World Unique Launch File Laser Sensor Gazebo vs RVIZ References Index

RVIZ is a powerful robot visualization tool RVIZ is a powerful robot visualization tool. It provides a convenient GUI to visualize sensor data, robot models, environment maps, which is useful for developing and debugging your robot controllers. RVIZ is a ROS 3D visualization tool that lets you see the world from a robot's perspective What is RVIZ?

To use rviz visualizer we call it by terminal simply with: > rosrun rviz rviz A GUI appears with an empty scene RVIZ GUI

Useful commands can be: Use the right mouse button or scroll wheel to zoom in or out Use the left mouse button to pan (shift-click) or rotate (click) In RVIZ GUI, on the left is the Displays area, which contains a list of different elements in the world, that appears in the middle (right now it just contains global options and grid) Below the Displays area, we have the Add button that allows the addition of more elements RVIZ GUI

Displays Name Description Messages Used Axes Displays a set of Axes Effort Shows the effort being put into each revolute joint of a robot. sensor_msgs/JointStates Camera Creates a new rendering window from the perspective of a camera, and overlays the image on top of it. sensor_msgs/Image, sensor_msgs/CameraInfo Grid Displays a 2D or 3D grid along a plane Grid Cells Draws cells from a grid, usually obstacles from a costmap from the navigation stack. nav_msgs/GridCells Image Creates a new rendering window with an Image. Unlike the Camera display, this display does not use a CameraInfo. Version: Diamondback+ sensor_msgs/Image InteractiveMarker Displays 3D objects from one or multiple Interactive Marker servers and allows mouse interaction with them. Version: Electric+ visualization_msgs/InteractiveMarker Laser Scan Shows data from a laser scan, with different options for rendering modes etc. sensor_msgs/LaserScan Displays

Displays Name Description Messages Used Map Displays a map on the ground plane. nav_msgs/OccupancyGrid Markers Allows programmers to display arbitrary primitive shapes through a topic visualization_msgs/Marker, visualization_msgs/MarkeraRRAY Path Shows a path from the navigation stack. nav_msgs/Path Point Draws a point as a small sphere. geometry_msgs/PointStamped Pose Draws a pose as either an arrow or axes. geometry_msgs/PoseStamped Pose Array Draws a "cloud" of arrows, one for each pose in a pose array geometry_msgs/PoseArray Point Cloud(2) Shows data from a point cloud, with different options for rendering modes, accumulation, etc. sensor_msgs/PointCloud, sensor_msgs/PointCloud2 Nav_msgs/OccupancyGridMap Displays

Displays Name Description Messages Used Polygon Draws the outline of a polygon as lines. geometry_msgs/Polygon Odometry Accumulates odometry poses from over time. Nav_mags/Odometry Range Displays cones representing range measurements from sonar or IR range sensors. Version: Electric+ sensor_msgs/Range RobotModel Shows a visual representation of a robot in the correct pose (as defined by the current TF transforms). TF Displays the tf transform hierarchy. Wrench Draws a wrench as arrow (force) and arrow + circle (torque) Geometry_msgs/WrenchStamped Oculus Renders the RViz scene to an Oculus headset Displays

Visualization of Vehicle Robot

Scheme MODELING Robot: .urdf , .xacro World: .sdf SIMULATION GAZEBO Insert the robot in a world INTERACTION GAZEBO PLUGINS Control the robots via plugins: differential drive, sensor laser…. VISUALIZATION RVIZ Tool to visualize the robot Scheme

In order to visualize our robot, we create a specific launch file. Go to package/launch folder and create a launch file: > cd ~/catkin_ws/src/my_robot/launch > gedit rviz.launch Copy and paste the following code: <?xml version="1.0"?> <launch> <param name="robot_description" command="cat '$(find my_robot)/gazebo_simulation/urdf/my_robot.xacro'"/> <!-- send fake joint values --> <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"> <param name="use_gui" value="False"/> </node> <!-- Combine joint values --> <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher"/> <!-- Show in Rviz --> <node name="rviz" pkg="rviz" type="rviz" /> </launch> RVIZ Launch File

Then we can launch our rviz.launch file simply with: > roslaunch my_robot rviz.launch The empty visualization of the GUI appears: RVIZ Initialization

In order to visualize our robot, go to the left panel (Displays) In order to visualize our robot, go to the left panel (Displays). Open Global Options and select link_chassis instead of map in the Fixed Frame Then, click on the button Add on the left bottom part. A window opens and then select the RobotModel under By display type RVIZ Settings

RVIZ Robot Visualization In this way we can visualize our model into RVIZ We can save a so called RVIZ configuration (.rviz) file in order to add it directly by a launch file with all the settings saved for our model Then, click on File -> Save Config As and create a directory called config in my_robot directory. Then save the file with the name config.rviz RVIZ Robot Visualization

It’s time to connect Gazebo – RVIZ – ROS using a unique launch file First of all we can create a world directly in Gazebo. After that we can load it as possible world by the unique launch file In the directory my_robot/gazebo_simulation/world save the worlds created in gazebo. > cd ~/catkin_ws/src/my_robot/gazebo_simulation/world For our purposes, download the simple_no_obst.world world and put it in the world directory NB: the .world file uses a xml language with the SDF standard at version 1.4 Then we create a unique launch file. Go to launch directory and use the following command: > gedit my_robot.launch Open the file and then copy and paste the following code: Gazebo World

<. xml version="1. 0" encoding="UTF-8". > <launch> < <?xml version="1.0" encoding="UTF-8"?> <launch> <!-- OPEN GAZEBO AND LOAD THE EMPTY WORLD AS INITIALIZATION. THEN LOAD THE WORLD CREATED. --> <include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="use_sim_time" value="true"/> <arg name="debug" value="false"/> <arg name="world_name" value="$(find my_robot)/gazebo_simulation/world/simple_no_obst.world"/> </include> <!-- ADD THE ROBOT DESCRIPTION FROM THE URDF (.xacro) FILE --> <param name="robot_description" command="$(find xacro)/xacro.py '$(find my_robot)/gazebo_simulation/urdf/my_robot.xacro'" /> <!-- Name of robot and starting positions (x, y, z) --> <arg name="robot_name" default="my_robot"/> <arg name="x" default="0"/> <arg name="y" default="0"/> <arg name="z" default="0.5"/> Unique launch file

<!-- SPAWN THE MODEL OF THE ROBOT IN THE GAZEBO WORLD --> <node name="spawn_$(arg robot_name)" pkg="gazebo_ros" type="spawn_model" output="screen" args="-unpause -urdf -param robot_description -model $(arg robot_name) -x $(arg x) -y $(arg y) -z $(arg z)" /> <!-- send fake joint values --> <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"> <param name="use_gui" value="False"/> </node> <node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher"> <!-- RVIZ Visualizator --> <!-- From configuration file --> <node pkg="rviz" type="rviz" name="rviz" args="-d $(find my_robot)/config/config.rviz"> </launch> Unique launch file

Laser Sensor Then we can launch our rviz.launch file simply with: > roslaunch my_robot my_robot.launch The visualization of the GUI with the robot model appears in RVIZ and Gazebo In RVIZ, we add the laser scan topic to see the obstacles reachable by the sensor To do this click on the button Add on the left bottom part. The Create visualization window opens. Then go to the subpanel By topic and select the topic my_robot/laser/scan -> Laser Scan. You can increase the size of the markers by digits the Size parameter Laser Sensor

Then the obstacles are read by laser scan and represent the simulator world in gazebo Gazebo vs RVIZ

Exploring ROS using a 2 Wheeled Robot RVIZ in ROS http://wiki.ros.org/rviz Exploring ROS using a 2 Wheeled Robot http://www.theconstructsim.com/ros-projects-exploring-ros-using-2-wheeled-robot-part-1/ Slides course (Roi Yehoshua) https://u.cs.biu.ac.il/~yehoshr1/89-685/ References