Skip to content

Commit

Permalink
update for synchronization xiaoxi
Browse files Browse the repository at this point in the history
  • Loading branch information
Durant35 committed Sep 17, 2016
1 parent a861520 commit e93ac9f
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ROS笔记-10 ros on RaspberryPi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ sudo ./src/catkin/bin/catkin_make_isolated --install -DCATKIN_BLACKLIST_PACKAGES
$ git clone https://github.com/AndreaCensi/csm.git (I cloned this into a sub directory of scan_tools)
$ ./install_quickstart.sh

$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/pi//csm/sm/pkg-config
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/durant35/Workspace/ROS_ws/src/csm/sm/pkg-config

$ cp -r ~/ros_my_ws/src/scan_tools/csm/deploy/include/* /home/pi/ros_my_ws/src/scan_tools/laser_scan_matcher/include/
$ cp -r /home/durant35/Workspace/ROS_ws/src/csm/deploy/include/* /home/durant35/Workspace/ROS_ws/src/laser_scan_matcher/include

// catkin_make [make_targets]
$ catkin_make laser_scan_matcher
Expand Down
10 changes: 9 additions & 1 deletion ROS笔记-14 hector_slam with NetWorking ROS.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
1. Robot端时间同步
$ sudo ntpdate tarantula7-B480.local

# PC need to install ntpdate first
sudo apt install ntpdate
# Robot & PC time synchronization
sudo ntpdate -u time.windows.com
#sudo ntpdate -u durant35-Aspire-TC.local
#sudo date -s "2016-08-15 20:53:00"

2. Robot 启动
$ source devel/setup.sh
Expand All @@ -23,7 +30,8 @@ http://ros-users.122217.n3.nabble.com/amcl-for-localization-td1168887.html

3. PC 启动
source devel/setup.sh
export ROS_HOSTNAME=tarantula7-B480.local
#export ROS_HOSTNAME=tarantula7-B480.local
export ROS_HOSTNAME=durant35-Aspire-TC.local
export ROS_MASTER_URI=http://durant35.local:11311

roslaunch hector_slam_example hector_hokuyo_networking.launch
Expand Down
4 changes: 2 additions & 2 deletions ROS笔记-15 amcl with NetWorking ROS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ http://ros-users.122217.n3.nabble.com/amcl-for-localization-td1168887.html

3. PC 启动
source devel/setup.sh
export ROS_HOSTNAME=tarantula7-B480.local
export ROS_HOSTNAME=durant35-aspire-tc.local
export ROS_MASTER_URI=http://durant35.local:11311

//roslaunch amcl_launch amcl.launch map:=lab314_2.yaml

roslaunch amcl_launch amcl.launch map:=lab510_0518.yaml


roslaunch amcl_launch amcl_networking.launch map:=lab510_0728.yaml
roslaunch amcl_launch amcl_networking.launch map:=lab510_0817.yaml
amcl_networking
设置 initial pose 并初始化 amcl 定位
./CarControlServer
Expand Down
6 changes: 3 additions & 3 deletions ROS笔记-16 Navigation with Networking ROS.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Robot:
sudo ntpdate tarantula7-B480.local
sudo ntpdate -u time.windows.com

source devel/setup.sh
export ROS_HOSTNAME=durant35.local
Expand All @@ -12,9 +12,9 @@ PC:


source devel/setup.sh
export ROS_HOSTNAME=tarantula7-B480.local
export ROS_HOSTNAME=durant35-aspire-tc.local
export ROS_MASTER_URI=http://durant35.local:11311
roslaunch navigation_launch navigation_networking.launch map:=lab510_0526.yaml
roslaunch navigation_launch navigation_networking.launch map:=lab510_0817.yaml

//roslaunch navigation_launch navigation.launch map:=lab314_2.yaml
//roslaunch navigation_launch navigation.launch map:=lab510_0518.yaml
Expand Down
71 changes: 71 additions & 0 deletions ROS笔记-16 Navigation without Networking ROS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

Robot:
sudo ntpdate -u time.windows.com

source devel/setup.sh
export ROS_HOSTNAME=durant35.local

roslaunch move_base_launch move_base.launch


PC:


source devel/setup.sh
export ROS_HOSTNAME=tarantula7-B480.local
export ROS_MASTER_URI=http://durant35.local:11311
roslaunch navigation_launch navigation_networking.launch map:=lab510_0526.yaml

//roslaunch navigation_launch navigation.launch map:=lab314_2.yaml
//roslaunch navigation_launch navigation.launch map:=lab510_0518.yaml
roslaunch navigation_launch navigation.launch map:=lab510_0531.yaml

roslaunch navigation_launch navigation_trajectory.launch map:=lab510_0531.yaml

roslaunch navigation_launch navigation_smoother.launch map:=lab510_0531.yaml



使用键盘操控
roslaunch motor_driver_launch keyboard.launch

开启导航功能
roslaunch navigation_launch navigation.launch map:=lab510_0518.yaml
roslaunch navigation_launch navigation.launch map:=lab510_0526.yaml

设置 initial pose 并初始化 amcl 定位
./CarControlServer
roslaunch motor_driver_launch keyboard.launch

roslaunch motor_driver_launch motor_driver.launch


Robot:
fuser 13000/tcp -v
kill PID



《Obtaining nav_msgs/Odometry from a laser_scan (eg. with laser_scan_matcher)》
http://answers.ros.org/question/12489/obtaining-nav_msgsodometry-from-a-laser_scan-eg-with-laser_scan_matcher/#18434

It looks like the scan matcher isn't measuring velocity directly, but it is computing the delta in the laser position, which you could combine with the time between laser scans to produce a rough estimate of velocity, subject to jitter in your laser frequency and any errors in the scan matching.


《Does a static_map costmap continually update from map_server?》
http://answers.ros.org/question/107281/does-a-static_map-costmap-continually-update-from-map_server/

does this only happen once, when initializing the costmap, or will the costmap be periodically updated when the map in map_server changes?

Yes, it continually updates


《What's the difference between global and local costmap's static_map?》
http://answers.ros.org/question/10620/whats-the-difference-between-global-and-local-costmaps-static_map/

The difference between the global and local costmap is that the global planner uses the global costmap to generate a long-term plan while the local planner uses the local costmap to generate a short-term plan.

Setting the "static_map" parameter to true just means that you'll be taking an outside map source for navigation. That map could come from SLAM or it could come from a source like the map_server.

gmapping can just replace the map_server with global static_map=true. An example of setting static_map=false, rolling_window=true would be a situation where you want to run navigation for the robot in the odometric frame without any map at all.

File renamed without changes.
51 changes: 51 additions & 0 deletions ROS笔记-19 Velodyne.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
1. install dependencies
sudo apt-get install libpcap*

2. create ros workspace
mkdir ROS_ws
cd ROS_ws
mkdir src & cd src
catkin_init_workspace
cd ..
catkin_make

3. git clone
cd src
git clone https://github.com/ros-drivers/velodyne.git
cd ..
catkin_make

4. configure your ethernet(here is enp3s0)
sudo ifconfig enp3s0 192.168.1.110 netmask 255.255.255.0
ping 192.168.1.201
it should be ping successfully!!

5. Getting Started with the Velodyne HDL-32E
http://wiki.ros.org/velodyne/Tutorials/Getting%20Started%20with%20the%20HDL-32E

4.1 rosrun velodyne_pointcloud gen_calibration.py 32db.xml

4.2 roslaunch velodyne_pointcloud 32e_points.launch calibration:=/home/durant35/Workspace/ROS_ws/32db.yaml

4.3 rosrun rviz rviz -f velodyne

6. velodyne_height_map --> Obtacles Detection
http://wiki.ros.org/velodyne_height_map

6.1 roslaunch velodyne_height_map heightmap_launch.launch
<launch>
<!-- start nodelet manager and driver nodelets -->
<!-- start transform nodelet using test calibration file -->
<include file="$(find velodyne_pointcloud)/launch/32e_points.launch">
<arg name="calibration"
value="/home/durant35/Workspace/ROS_ws/32db.yaml"/>
</include>
<!-- start heightmap nodelet -->
<node pkg="velodyne_height_map" type="heightmap_node" name="heightmap_node">
<param name="full_clouds" type="bool" value="true"/>
</node>
</launch>
6.2 rosrun rviz rviz -f velodyne



0 comments on commit e93ac9f

Please sign in to comment.