drive
Connection to NVIDIA DRIVE hardware
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Description
This object represents a connection from the MATLAB® software to the NVIDIA DRIVE® hardware. To create this object, use the drive
function.
To interact with the DRIVE hardware, use this object with the functions listed in Object Functions
Creation
Description
creates a connection,
obj
= driveobj
, from the MATLAB software to the NVIDIA DRIVE hardware. Use this syntax to connect or reconnect to the same hardware.
You do not need to supply the device address, user name, and password. The
drive
object reuses these settings from the most recent
successful connection to the DRIVE
hardware.
overrides the device address, user name, and password from the previous connection. Use
this syntax to connect to hardware whose settings are different from the previous
successful connection. The DRIVE hardware has
two default user names: obj
= drive(deviceaddress
,username
,password
)'nvidia'
and 'ubuntu'
. For
'nvidia'
, the default password is 'nvidia'
. For
'ubuntu'
, the default password is 'ubuntu'
. It
is a good security practice to create a strong password after the first login. After
changing the hardware password, or after connecting from the MATLAB software to a different piece of DRIVE hardware, use this syntax.
After connecting to the hardware, you can use the obj
object to
interact with the DRIVE hardware and attached peripheral devices such as a camera. To
close the connection, use clear
to remove obj
and connections that use obj
.
Input Arguments
Output Arguments
Properties
Object Functions
getFile | Transfer file from NVIDIA hardware to host computer |
putFile | Transfer file from host computer to target hardware |
deleteFile | Delete file on target hardware |
openShell | Open terminal on host computer to use a Linux shell on NVIDIA hardware |
system | Run commands in a Linux shell on the NVIDIA hardware |
getL4TVersion | Get the L4T version of the NVIDIA Jetson hardware |
getPdkorSdkVersion | Get the version number of the DriveWorks SDK installed on the NVIDIA DRIVE hardware |
setupCodegenContext | Select the target hardware to build code for from multiple live connection objects |
webcam | Create webcam object to acquire images from an USB webcam
attached to the NVIDIA hardware |
getCameraList | Get a list of available cameras on the NVIDIA hardware |
updatePeripheralInfo | Scan for and update the list of peripherals connected to the target hardware |
getLinuxVersion | Get information about the Linux environment on the target |
imageDisplay | Create an imageDisplay object for displaying images on
NVIDIA targets |
getPILPort | Get the TCP/IP port number used by the PIL execution |
getPILTimeout | Get the timeout value that PIL uses for reading data |
setPILPort | Set the TCP/IP port number used by the PIL execution |
setPILTimeout | Set the timeout value that PIL uses for reading data |
killApplication | Kill an application on the NVIDIA target by name |
killProcess | Kill a process on the NVIDIA target by ID |
runApplication | Launch an application on the NVIDIA target by name |
runExecutable | Launch an executable on the NVIDIA target by name |
getDisplayEnvironment | Get the display environment value used for redirecting the display on the target |
setDisplayEnvironment | Set the display environment value used for redirecting the display on the target |
Examples
Extended Capabilities
Version History
Introduced in R2018b
See Also
Objects
Topics
- Sobel Edge Detection on NVIDIA Jetson Nano Using Raspberry Pi Camera Module V2
- Getting Started with the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms
- Deploy and Run Sobel Edge Detection with I/O on NVIDIA Jetson Nano
- Build and Run an Executable on NVIDIA Hardware
- Stop or Restart an Executable Running on NVIDIA Hardware
- Run Linux Commands on NVIDIA Hardware