Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- local_ip=*********
- name=******
- pwd=*******
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(local_ip,username=name,password=pwd)
- command="rostopic pub -1 /ardrone/takeoff std_msgs/Empty"
- stdin, stdout, stderr = ssh.exec_command(command)
- print stdout.read()
- ******@*****:~$ rostopic pub -1 /ardrone/takeoff std_msgs/Empty
- publishing and latching message for 3.0 seconds
- ******@*****:~$
- command="ls"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement