Showing posts with label ROS. Show all posts
Showing posts with label ROS. Show all posts
As an Amazon Associate I earn from qualifying purchases.
As an Amazon Associate I earn from qualifying purchases.
Ubiquity Robotics Ubuntu Pi image for Pi with ROS
Ubiquity Robotics Lubuntu Pi image for Pi
On Ubuntu OS:
sudo apt install gnome-disk-utility
On Mac OS:
https://etcher.io/
Raspberry Pi 3 Model B
User :Ubuntu
Password: ubuntu (please change)
Pi HotSpot:
SSID is ubiquityrobotXXXX
where XXXX is part of the MAC address
Password: robotseverywhere
$ ssh ubuntu@192.168.50.16
The authenticity of host '192.168.50.16 (192.168.50.16)' can't be established.
ECDSA key fingerprint is SHA256:xq7SSuVwuVdifKaZGNqgt09LiDiZ0cnayd1tp4kWzD4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.50.16' (ECDSA) to the list of known hosts.
ubuntu@192.168.50.16's password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.9.80-v7+ armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
464 packages can be updated.
140 updates are security updates.
...
ubuntu@ubiquityrobot:~$ sudo apt-get update
[sudo] password for ubuntu:
ubuntu@ubiquityrobot:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Disable the Ubiquity Robotics scripts (unless you run their robots):
$ sudo systemctl disable magni-base
Removed symlink /etc/systemd/system/multi-user.target.wants/magni-base.service.
On Ubuntu OS:
sudo apt install gnome-disk-utility
On Mac OS:
https://etcher.io/
Raspberry Pi 3 Model B
User :Ubuntu
Password: ubuntu (please change)
Pi HotSpot:
SSID is ubiquityrobotXXXX
where XXXX is part of the MAC address
Password: robotseverywhere
$ ssh ubuntu@192.168.50.16
The authenticity of host '192.168.50.16 (192.168.50.16)' can't be established.
ECDSA key fingerprint is SHA256:xq7SSuVwuVdifKaZGNqgt09LiDiZ0cnayd1tp4kWzD4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.50.16' (ECDSA) to the list of known hosts.
ubuntu@192.168.50.16's password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.9.80-v7+ armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
464 packages can be updated.
140 updates are security updates.
...
ubuntu@ubiquityrobot:~$ sudo apt-get update
[sudo] password for ubuntu:
ubuntu@ubiquityrobot:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
$ sudo systemctl disable magni-base
Removed symlink /etc/systemd/system/multi-user.target.wants/magni-base.service.
References:
https://ubuntu-pi-flavour-maker.org/
Ubiquity Robotics Lubuntu Pi image for Pi:
find similar posts:
apt,
disk image,
Etcher,
gnome-disk-utility,
Lubuntu,
Raspberry Pi,
ROS,
SD card,
Ubuntu
0
comments
Ubiquity Robotics Ubuntu Pi image for Pi with ROS
Ubiquity Robotics Lubuntu Pi image for Pi
On Ubuntu OS:
sudo apt install gnome-disk-utility
On Mac OS:
https://etcher.io/
Raspberry Pi 3 Model B
User :Ubuntu
Password: ubuntu (please change)
Pi HotSpot:
SSID is ubiquityrobotXXXX
where XXXX is part of the MAC address
Password: robotseverywhere
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Disable the Ubiquity Robotics scripts (unless you run their robots):
On Ubuntu OS:
sudo apt install gnome-disk-utility
On Mac OS:
https://etcher.io/
Raspberry Pi 3 Model B
User :Ubuntu
Password: ubuntu (please change)
Pi HotSpot:
SSID is ubiquityrobotXXXX
where XXXX is part of the MAC address
Password: robotseverywhere
$ ssh ubuntu@192.168.50.16
The authenticity of host '192.168.50.16 (192.168.50.16)' can't be established.
ECDSA key fingerprint is SHA256:xq7SSuVwuVdifKaZGNqgt09LiDiZ0cnayd1tp4kWzD4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.50.16' (ECDSA) to the list of known hosts.
ubuntu@192.168.50.16's password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.9.80-v7+ armv7l)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
464 packages can be updated.
140 updates are security updates.
...
How to update Ubuntu from the command line?
ubuntu@ubiquityrobot:~$ sudo apt-get update
[sudo] password for ubuntu:
ubuntu@ubiquityrobot:~$ sudo apt-get upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
$ sudo systemctl disable magni-base
Removed symlink /etc/systemd/system/multi-user.target.wants/magni-base.service.
References
https://ubuntu-pi-flavour-maker.org/
Ubiquity Robotics Lubuntu Pi image for Pi:
find similar posts:
apt,
disk image,
Etcher,
gnome-disk-utility,
Lubuntu,
Raspberry Pi,
ROS,
SD card,
Ubuntu
0
comments
As an Amazon Associate I earn from qualifying purchases.
As an Amazon Associate I earn from qualifying purchases.
ROS Droid
Creating Android ROS nodes to:
- add control UI (HMI)
- utilize existing phone sensors:
-- gyroscope
-- GPS
-- compass
-- camera
- do some data processing (flagship phones are very powerful)
- use TensorFlow AI
References:
https://github.com/rosjava/android_core
http://wiki.ros.org/rosjava/Tutorials/Create%20a%20ROS%20Android%20Node
find similar posts:
Android,
robotics,
ROS
0
comments
ROS Droid
Creating Android ROS nodes to:
- add control UI (HMI)
- utilize existing phone sensors:
-- gyroscope
-- GPS
-- compass
-- camera
- do some data processing (flagship phones are very powerful)
- use TensorFlow AI
References:
https://github.com/rosjava/android_core
http://wiki.ros.org/rosjava/Tutorials/Create%20a%20ROS%20Android%20Node
find similar posts:
Android,
robotics,
ROS
0
comments
ROS Kinetic on Ubuntu 16.04 (Mac Parallels)
http://wiki.ros.org/Installation/Ubuntu
Installation
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full
....
Initialize
$ sudo rosdep initAdd the source of Kinetic setp.bash to ~/.bashrc
$ source ~/.bashrc
Install ROS Install tools
$ printenv | grep ROS
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make
~/catkin_ws/src$ cat CMakeLists.txt
~/catkin_ws$ source devel/setup.bash
$ rospack find roscpp
/opt/ros/kinetic/share/roscpp
$ roscd roscpp/cmake
parallels@parallels-vm:/opt/ros/kinetic/share/roscpp/cmake
$ rosls roscpp_tutorials
cmake launch package.xml srv
Finding ROS packages on your system
$ rospack find roscpp
/opt/ros/kinetic/share/roscpp
$ roscd roscpp/cmake
parallels@parallels-vm:/opt/ros/kinetic/share/roscpp/cmake
$ rosls roscpp_tutorials
cmake launch package.xml srv
Creating a ROS (catkin) Package
~/catkin_ws/src$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
Created file beginner_tutorials/CMakeLists.txt
Created file beginner_tutorials/package.xml
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/parallels/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.
Created file beginner_tutorials/CMakeLists.txt
Created file beginner_tutorials/package.xml
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/parallels/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.
Building catkin
~/catkin_ws/src$ cd ~/catkin_ws
parallels@parallels-vm:~/catkin_ws$ catkin_make
~/catkin_ws/src$ cd ~/catkin_ws
parallels@parallels-vm:~/catkin_ws$ catkin_make
$ . ~/catkin_ws/devel/setup.bash
$ rospack depends1 beginner_tutorials
roscpp
rospy
std_msgs
roscpp
rospy
std_msgs
$ rospack depends1 rospy
genpy
roscpp
rosgraph
rosgraph_msgs
roslib
std_msgs
genpy
roscpp
rosgraph
rosgraph_msgs
roslib
std_msgs
$ source /opt/ros/kinetic/setup.bash
~/catkin_ws$ catkin_make
~/catkin_ws$ catkin_make install
catkin_make
http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes
$ sudo apt-get install ros-kinetic-ros-tutorials
$ roscore
... logging to /home/parallels/.ros/log/4127ad4c-c430-11e8-97ed-001c42291ef9/roslaunch-parallels-vm-17556.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1gb .="" p="">
started roslaunch server http://parallels-vm:39325/
ros_comm version 1.12.14
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [17567]
ROS_MASTER_URI=http://parallels-vm:11311/
setting /run_id to 4127ad4c-c430-11e8-97ed-001c42291ef9
process[rosout-1]: started with pid [17583]
started core service [/rosout]
1gb>
NEW TERMINAL
~/catkin_ws$ rosnode list
/rosout
in new terminal window
$ rosnode list
/rosout
/turtlesim
~/catkin_ws$ rosnode ping turtlesim
rosnode: node is [/turtlesim]
pinging /turtlesim with a timeout of 3.0s
xmlrpc reply from http://parallels-vm:38047/ time=0.795841ms
ROS Topics
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
$ rosrun turtlesim turtlesim_node
$ sudo apt-get install ros-kinetic-rqt
$ sudo apt-get install ros-kinetic-rqt-common-plugins
$ rosrun rqt_graph rqt_graph
$ rostopic -h
rostopic is a command-line tool for printing information about ROS Topics.
Commands:
rostopic bw display bandwidth used by topic
rostopic delay display delay of topic from timestamp in header
rostopic echo print messages to screen
rostopic find find topics by type
rostopic hz display publishing rate of topic
rostopic info print information about active topic
rostopic list list active topics
rostopic pub publish data to topic
rostopic type print topic or field type
Type rostopic -h for more detailed usage, e.g. 'rostopic echo -h'
parallels@parallels-vm:~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
$ rostopic echo /turtle1/cmd_vel
linear:
x: -2.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0
---
$ rostopic type /turtle1/cmd_vel
geometry_msgs/Twist
$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[A
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
$ rosrun rqt_plot rqt_plot
http://wiki.ros.org/ROS/Tutorials/UnderstandingServicesParams
$ rosservice list
/clear
/kill
/reset
/rosout/get_loggers
/rosout/set_logger_level
/spawn
/turtle1/set_pen
/turtle1/teleport_absolute
/turtle1/teleport_relative
/turtlesim/get_loggers
/turtlesim/set_logger_level
$ rosservice call /clear
rosservice call /spawn 2 2 0.2 ""
$ rosparam list
/background_b
/background_g
/background_r
/rosdistro
/roslaunch/uris/host_parallels_vm__40367
/rosversion
/run_id
$ rosparam get /rosdistro
'kinetic
'
$ rosparam get /rosversion
'1.12.14
$ rosparam dump ros_params_dump.yaml
background_b: 255
background_g: 86
background_r: 69
rosdistro: 'kinetic
'
roslaunch:
uris: {host_parallels_vm__40367: 'http://parallels-vm:40367/'}
rosversion: '1.12.14
'
run_id: d19c2fd2-c4d6-11e8-a520-001c42291ef9
http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch
~/catkin_ws$ catkin_make install
$ cd ~/catkin_ws/
~/catkin_ws$ ls src
beginner_tutorials CMakeLists.txt
ROS Nodes
http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes
$ sudo apt-get install ros-kinetic-ros-tutorials
Starting ROS Core Service
$ roscore
... logging to /home/parallels/.ros/log/4127ad4c-c430-11e8-97ed-001c42291ef9/roslaunch-parallels-vm-17556.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1gb .="" p="">
started roslaunch server http://parallels-vm:39325/
ros_comm version 1.12.14
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [17567]
ROS_MASTER_URI=http://parallels-vm:11311/
setting /run_id to 4127ad4c-c430-11e8-97ed-001c42291ef9
process[rosout-1]: started with pid [17583]
started core service [/rosout]
1gb>
~/catkin_ws$ rosnode list
/rosout
Running Turtle Simulator Node
$ rosrun turtlesim turtlesim_nodein new terminal window
$ rosnode list
/rosout
/turtlesim
rosnode: node is [/turtlesim]
pinging /turtlesim with a timeout of 3.0s
xmlrpc reply from http://parallels-vm:38047/ time=0.795841ms
ROS Topics
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
$ rosrun turtlesim turtlesim_node
$ sudo apt-get install ros-kinetic-rqt
$ sudo apt-get install ros-kinetic-rqt-common-plugins
$ rosrun rqt_graph rqt_graph
$ rostopic -h
rostopic is a command-line tool for printing information about ROS Topics.
Commands:
rostopic bw display bandwidth used by topic
rostopic delay display delay of topic from timestamp in header
rostopic echo print messages to screen
rostopic find find topics by type
rostopic hz display publishing rate of topic
rostopic info print information about active topic
rostopic list list active topics
rostopic pub publish data to topic
rostopic type print topic or field type
Type rostopic
parallels@parallels-vm:~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
$ rostopic echo /turtle1/cmd_vel
linear:
x: -2.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0
---
$ rostopic list -v
Published topics:
* /turtle1/color_sensor [turtlesim/Color] 1 publisher
* /turtle1/cmd_vel [geometry_msgs/Twist] 1 publisher
* /rosout [rosgraph_msgs/Log] 3 publishers
* /rosout_agg [rosgraph_msgs/Log] 1 publisher
* /turtle1/pose [turtlesim/Pose] 1 publisher
Subscribed topics:
* /turtle1/cmd_vel [geometry_msgs/Twist] 2 subscribers
* /rosout [rosgraph_msgs/Log] 1 subscriber
$ rostopic type /turtle1/cmd_vel
geometry_msgs/Twist
$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[A
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
$ rosrun rqt_plot rqt_plot
http://wiki.ros.org/ROS/Tutorials/UnderstandingServicesParams
$ rosservice list
/clear
/kill
/reset
/rosout/get_loggers
/rosout/set_logger_level
/spawn
/turtle1/set_pen
/turtle1/teleport_absolute
/turtle1/teleport_relative
/turtlesim/get_loggers
/turtlesim/set_logger_level
Create another turtle
rosservice call /spawn 2 2 0.2 ""
$ rosparam list
/background_b
/background_g
/background_r
/rosdistro
/roslaunch/uris/host_parallels_vm__40367
/rosversion
/run_id
'kinetic
'
$ rosparam get /rosversion
'1.12.14
$ rosparam dump ros_params_dump.yaml
background_g: 86
background_r: 69
rosdistro: 'kinetic
'
roslaunch:
uris: {host_parallels_vm__40367: 'http://parallels-vm:40367/'}
rosversion: '1.12.14
'
run_id: d19c2fd2-c4d6-11e8-a520-001c42291ef9
http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch
find similar posts:
ROS,
Ubuntu
0
comments
ROS Kinetic on Ubuntu 16.04 (Mac Parallels)
http://wiki.ros.org/Installation/Ubuntu
Installation
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full
....
Initialize
$ sudo rosdep initAdd the source of Kinetic setp.bash to ~/.bashrc
$ source ~/.bashrc
Install ROS Install tools
$ printenv | grep ROS
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/
$ catkin_make
~/catkin_ws/src$ cat CMakeLists.txt
~/catkin_ws$ source devel/setup.bash
$ rospack find roscpp
/opt/ros/kinetic/share/roscpp
$ roscd roscpp/cmake
parallels@parallels-vm:/opt/ros/kinetic/share/roscpp/cmake
$ rosls roscpp_tutorials
cmake launch package.xml srv
Finding ROS packages on your system
$ rospack find roscpp
/opt/ros/kinetic/share/roscpp
$ roscd roscpp/cmake
parallels@parallels-vm:/opt/ros/kinetic/share/roscpp/cmake
$ rosls roscpp_tutorials
cmake launch package.xml srv
Creating a ROS (catkin) Package
~/catkin_ws/src$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
Created file beginner_tutorials/CMakeLists.txt
Created file beginner_tutorials/package.xml
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/parallels/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.
Created file beginner_tutorials/CMakeLists.txt
Created file beginner_tutorials/package.xml
Created folder beginner_tutorials/include/beginner_tutorials
Created folder beginner_tutorials/src
Successfully created files in /home/parallels/catkin_ws/src/beginner_tutorials. Please adjust the values in package.xml.
Building catkin
~/catkin_ws/src$ cd ~/catkin_ws
parallels@parallels-vm:~/catkin_ws$ catkin_make
~/catkin_ws/src$ cd ~/catkin_ws
parallels@parallels-vm:~/catkin_ws$ catkin_make
$ . ~/catkin_ws/devel/setup.bash
$ rospack depends1 beginner_tutorials
roscpp
rospy
std_msgs
roscpp
rospy
std_msgs
$ rospack depends1 rospy
genpy
roscpp
rosgraph
rosgraph_msgs
roslib
std_msgs
genpy
roscpp
rosgraph
rosgraph_msgs
roslib
std_msgs
$ source /opt/ros/kinetic/setup.bash
~/catkin_ws$ catkin_make
~/catkin_ws$ catkin_make install
catkin_make
http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes
$ sudo apt-get install ros-kinetic-ros-tutorials
$ roscore
... logging to /home/parallels/.ros/log/4127ad4c-c430-11e8-97ed-001c42291ef9/roslaunch-parallels-vm-17556.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1gb .="" p="">
started roslaunch server http://parallels-vm:39325/
ros_comm version 1.12.14
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [17567]
ROS_MASTER_URI=http://parallels-vm:11311/
setting /run_id to 4127ad4c-c430-11e8-97ed-001c42291ef9
process[rosout-1]: started with pid [17583]
started core service [/rosout]
1gb>
NEW TERMINAL
~/catkin_ws$ rosnode list
/rosout
in new terminal window
$ rosnode list
/rosout
/turtlesim
~/catkin_ws$ rosnode ping turtlesim
rosnode: node is [/turtlesim]
pinging /turtlesim with a timeout of 3.0s
xmlrpc reply from http://parallels-vm:38047/ time=0.795841ms
ROS Topics
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
$ rosrun turtlesim turtlesim_node
$ sudo apt-get install ros-kinetic-rqt
$ sudo apt-get install ros-kinetic-rqt-common-plugins
$ rosrun rqt_graph rqt_graph
$ rostopic -h
rostopic is a command-line tool for printing information about ROS Topics.
Commands:
rostopic bw display bandwidth used by topic
rostopic delay display delay of topic from timestamp in header
rostopic echo print messages to screen
rostopic find find topics by type
rostopic hz display publishing rate of topic
rostopic info print information about active topic
rostopic list list active topics
rostopic pub publish data to topic
rostopic type print topic or field type
Type rostopic -h for more detailed usage, e.g. 'rostopic echo -h'
parallels@parallels-vm:~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
$ rostopic echo /turtle1/cmd_vel
linear:
x: -2.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0
---
$ rostopic type /turtle1/cmd_vel
geometry_msgs/Twist
$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[A
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
$ rosrun rqt_plot rqt_plot
http://wiki.ros.org/ROS/Tutorials/UnderstandingServicesParams
$ rosservice list
/clear
/kill
/reset
/rosout/get_loggers
/rosout/set_logger_level
/spawn
/turtle1/set_pen
/turtle1/teleport_absolute
/turtle1/teleport_relative
/turtlesim/get_loggers
/turtlesim/set_logger_level
$ rosservice call /clear
rosservice call /spawn 2 2 0.2 ""
$ rosparam list
/background_b
/background_g
/background_r
/rosdistro
/roslaunch/uris/host_parallels_vm__40367
/rosversion
/run_id
$ rosparam get /rosdistro
'kinetic
'
$ rosparam get /rosversion
'1.12.14
$ rosparam dump ros_params_dump.yaml
background_b: 255
background_g: 86
background_r: 69
rosdistro: 'kinetic
'
roslaunch:
uris: {host_parallels_vm__40367: 'http://parallels-vm:40367/'}
rosversion: '1.12.14
'
run_id: d19c2fd2-c4d6-11e8-a520-001c42291ef9
http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch
~/catkin_ws$ catkin_make install
$ cd ~/catkin_ws/
~/catkin_ws$ ls src
beginner_tutorials CMakeLists.txt
ROS Nodes
http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes
$ sudo apt-get install ros-kinetic-ros-tutorials
Starting ROS Core Service
$ roscore
... logging to /home/parallels/.ros/log/4127ad4c-c430-11e8-97ed-001c42291ef9/roslaunch-parallels-vm-17556.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1gb .="" p="">
started roslaunch server http://parallels-vm:39325/
ros_comm version 1.12.14
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.14
NODES
auto-starting new master
process[master]: started with pid [17567]
ROS_MASTER_URI=http://parallels-vm:11311/
setting /run_id to 4127ad4c-c430-11e8-97ed-001c42291ef9
process[rosout-1]: started with pid [17583]
started core service [/rosout]
1gb>
~/catkin_ws$ rosnode list
/rosout
Running Turtle Simulator Node
$ rosrun turtlesim turtlesim_nodein new terminal window
$ rosnode list
/rosout
/turtlesim
rosnode: node is [/turtlesim]
pinging /turtlesim with a timeout of 3.0s
xmlrpc reply from http://parallels-vm:38047/ time=0.795841ms
ROS Topics
http://wiki.ros.org/ROS/Tutorials/UnderstandingTopics
$ rosrun turtlesim turtlesim_node
$ sudo apt-get install ros-kinetic-rqt
$ sudo apt-get install ros-kinetic-rqt-common-plugins
$ rosrun rqt_graph rqt_graph
$ rostopic -h
rostopic is a command-line tool for printing information about ROS Topics.
Commands:
rostopic bw display bandwidth used by topic
rostopic delay display delay of topic from timestamp in header
rostopic echo print messages to screen
rostopic find find topics by type
rostopic hz display publishing rate of topic
rostopic info print information about active topic
rostopic list list active topics
rostopic pub publish data to topic
rostopic type print topic or field type
Type rostopic
parallels@parallels-vm:~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
$ rostopic echo /turtle1/cmd_vel
linear:
x: -2.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0
---
$ rostopic list -v
Published topics:
* /turtle1/color_sensor [turtlesim/Color] 1 publisher
* /turtle1/cmd_vel [geometry_msgs/Twist] 1 publisher
* /rosout [rosgraph_msgs/Log] 3 publishers
* /rosout_agg [rosgraph_msgs/Log] 1 publisher
* /turtle1/pose [turtlesim/Pose] 1 publisher
Subscribed topics:
* /turtle1/cmd_vel [geometry_msgs/Twist] 2 subscribers
* /rosout [rosgraph_msgs/Log] 1 subscriber
$ rostopic type /turtle1/cmd_vel
geometry_msgs/Twist
$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[A
parallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
^[[Aparallels@parallels-vm:~/catkin_ws$ rostopic pub -1 /turtle1/cmd_vel geometry_msgs/Twist -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, 1.8]'
publishing and latching message for 3.0 seconds
$ rosrun rqt_plot rqt_plot
http://wiki.ros.org/ROS/Tutorials/UnderstandingServicesParams
$ rosservice list
/clear
/kill
/reset
/rosout/get_loggers
/rosout/set_logger_level
/spawn
/turtle1/set_pen
/turtle1/teleport_absolute
/turtle1/teleport_relative
/turtlesim/get_loggers
/turtlesim/set_logger_level
Create another turtle
rosservice call /spawn 2 2 0.2 ""
$ rosparam list
/background_b
/background_g
/background_r
/rosdistro
/roslaunch/uris/host_parallels_vm__40367
/rosversion
/run_id
'kinetic
'
$ rosparam get /rosversion
'1.12.14
$ rosparam dump ros_params_dump.yaml
background_g: 86
background_r: 69
rosdistro: 'kinetic
'
roslaunch:
uris: {host_parallels_vm__40367: 'http://parallels-vm:40367/'}
rosversion: '1.12.14
'
run_id: d19c2fd2-c4d6-11e8-a520-001c42291ef9
http://wiki.ros.org/ROS/Tutorials/UsingRqtconsoleRoslaunch
find similar posts:
ROS,
Ubuntu
0
comments
Subscribe to:
Posts (Atom)
apt quotation..
“A man should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.” by Robert A. Heinlein (author, aeronautical engineer, and naval officer)



