Giter VIP home page Giter VIP logo

Comments (11)

robin-shaun avatar robin-shaun commented on May 28, 2024 1

Hello, I have just upgraded the version of px4 and done a lot of modification for XTDrone, but some demos are still waiting to be modified. I will complete the modification in several days.

from xtdrone.

robin-shaun avatar robin-shaun commented on May 28, 2024 1

Hello, the manual is OK now. You can test it.

from xtdrone.

robin-shaun avatar robin-shaun commented on May 28, 2024 1

hello, it's a bug and I have solved it.
<frameName>laser_2d</frameName> in XTDrone/sitl_config/models/hokuyo_lidar/model.sdf,
previously, it's laser.

from xtdrone.

robin-shaun avatar robin-shaun commented on May 28, 2024 1

odom and map is connected by gmapping, not by laser scan matcher

from xtdrone.

saengphet avatar saengphet commented on May 28, 2024

Hello, I have just upgraded the version of px4 and done a lot of modification for XTDrone, but some demos are still waiting to be modified. I will complete the modification in several days.

Thank you so much for your very fast response. I am looking forward to testing a modified version. I am going to test other tutorials.

from xtdrone.

saengphet avatar saengphet commented on May 28, 2024

Hello, the manual is OK now. You can test it.

Hello! Thank you for your update. Unfortunately, I have already tested the newest and still got errors as follows

Firstly, I run "roslaunch px4 indoor3.launch", after that I got many warning messages as
"Warning [parser.cc:950] XML Element[friction], child of element[collision] not defined in SDF. Ignoring[friction]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element." However, the gazebo simulation looks fine, nothing different from the tutorial

Screenshot at 2020-05-30 22:35:00

Secondly, I run "roslaunch laser_scan_matcher matcher.launch" in another terminal, I got error messages
"[ WARN] [1590852379.820397259, 179.096000000]: Could not get initial transform from base to laser frame, "iris_0/laser" passed to lookupTransform argument source_frame does not exist.
"

Screenshot at 2020-05-30 22:35:56

Next, check rqt tf tree and rqt graph, I got something different from the tutorial.

Screenshot at 2020-05-30 22:36:21

Screenshot at 2020-05-30 22:37:01

from xtdrone.

saengphet avatar saengphet commented on May 28, 2024

hello, it's a bug and I have solved it.
<frameName>laser_2d</frameName> in XTDrone/sitl_config/models/hokuyo_lidar/model.sdf,
previously, it's laser.

Hello, iris_0/laser_2d is OK for now, next is "No transform from [map] to frame [odom]" and "No transform from [map_ned] to frame [odom]"

Screenshot at 2020-05-31 10:11:56

After "roslaunch laser_scan_matcher matcher_gmapping.launch" I got error as:

SUMMARY

PARAMETERS

  • /laser_scan_matcher_node/base_frame: iris_0/base_link
  • /laser_scan_matcher_node/fixed_frame: odom
  • /laser_scan_matcher_node/max_iterations: 10
  • /laser_scan_matcher_node/use_imu: False
  • /laser_scan_matcher_node/use_odom: False
  • /rosdistro: kinetic
  • /rosversion: 1.12.14
  • /slam_gmapping/angularUpdate: 0.5
  • /slam_gmapping/astep: 0.15
  • /slam_gmapping/base_frame: iris_0/base_link
  • /slam_gmapping/delta: 0.02
  • /slam_gmapping/iterations: 1
  • /slam_gmapping/kernelSize: 1
  • /slam_gmapping/lasamplerange: 0.05
  • /slam_gmapping/lasamplestep: 0.05
  • /slam_gmapping/linearUpdate: 1.0
  • /slam_gmapping/llsamplerange: 0.01
  • /slam_gmapping/llsamplestep: 0.05
  • /slam_gmapping/lsigma: 0.1
  • /slam_gmapping/lskip: 1
  • /slam_gmapping/lstep: 0.15
  • /slam_gmapping/map_udpate_interval: 1.0
  • /slam_gmapping/maxUrange: 5.0
  • /slam_gmapping/ogain: 3.0
  • /slam_gmapping/particles: 10
  • /slam_gmapping/resampleThreshold: 0.5
  • /slam_gmapping/sigma: 0.1
  • /slam_gmapping/srr: 0.1
  • /slam_gmapping/srt: 0.2
  • /slam_gmapping/str: 0.1
  • /slam_gmapping/stt: 0.2
  • /slam_gmapping/temporalUpdate: 0.4
  • /slam_gmapping/xmax: 5.0
  • /slam_gmapping/xmin: -5.0
  • /slam_gmapping/ymax: 5.0
  • /slam_gmapping/ymin: -5.0
  • /use_sim_time: True

NODES
/
laser_scan_matcher_node (laser_scan_matcher/laser_scan_matcher_node)
rviz (rviz/rviz)
slam_gmapping (gmapping/slam_gmapping)

ROS_MASTER_URI=http://localhost:11311

process[rviz-1]: started with pid [8207]
process[laser_scan_matcher_node-2]: started with pid [8208]
ERROR: cannot launch node of type [gmapping/slam_gmapping]: gmapping
[ INFO] [1590896175.041331942]: Starting LaserScanMatcher
[ WARN] [1590896176.260677314, 1062.132000000]: Could not get initial transform from base to laser frame, Lookup would require extrapolation into the past. Requested time 1061.124000000 but the earliest data is at time 1061.168000000, when looking up transform from frame [iris_0/laser_2d] to frame [iris_0/base_link]
[ WARN] [1590896176.260739079, 1062.132000000]: Skipping scan

Screenshot at 2020-05-31 10:47:25

from xtdrone.

saengphet avatar saengphet commented on May 28, 2024

Hi, Now it works fine after installed "sudo apt-get install ros-kinetic-slam-gmapping". It's my fault. Thank you !

Screenshot at 2020-05-31 11:03:47

from xtdrone.

robin-shaun avatar robin-shaun commented on May 28, 2024

ok

from xtdrone.

zhulei991113 avatar zhulei991113 commented on May 28, 2024

嗨,现在,在安装“ sudo apt-get install ros-kinetic-slam-gmapping”后,它可以正常工作。我的错。谢谢 !

截屏时间为2020-05-31 11:03:47

hello!I am very happy seeing your comments and result.i have a same print
however,i want to ask you for help
class TF in rviz ,have many warning......though map and others are ok
additionally,after output "python laser_transfer.py iris 0 2d",the px4 can print :
INFO [ecl/EKF] 19804000: reset position to ev position
INFO [ecl/EKF] 19804000: commencing external vision position fusion
INFO [ecl/EKF] 19804000: commencing external vision yaw fusion
?

from xtdrone.

saengphet avatar saengphet commented on May 28, 2024

@zhulei991113 Hi, after script "python laser_transfer.py iris 0 2d" is executed then the external position from ROS will be sent to px4 state estimation (EKF2). The INFO is telling us that PX4 is received the external position (using vision pipeline). Some of TF there is no link between each other (such as base_link_frd and map). However, it is fine because the important frames are linked together.

from xtdrone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.