open-rmf / rmf_obstacle

Packages that infer the presence of obstacles from sensor inputs.
Apache License 2.0
6 stars 9 forks source link

[Other issue]: Unable to run lasersacn_detector #15

Closed Avisheet closed 8 months ago

Avisheet commented 8 months ago

Description

I have cloned the rmf_obstacle_detectors and other needed open-rmf repository. I have also successfully ran the demo simulations but while running the below code it's stuck at waiting to configure....

ros2 run rmf_obstacle_detector_laserscan laserscan_detector
[INFO] [1710419018.078797699] [laserscan_obstacle_detector]: Setting parameter range_threshold to 1.000 meters
[INFO] [1710419018.078900384] [laserscan_obstacle_detector]: Setting parameter min_obstacle_size to 0.750 meters
[INFO] [1710419018.078927062] [laserscan_obstacle_detector]: Setting parameter scan_topic_name to lidar/scan
[INFO] [1710419018.078939014] [laserscan_obstacle_detector]: Setting parameter level_name to L1
[INFO] [1710419018.078949124] [laserscan_obstacle_detector]: Setting parameter calibration_sample_count to 10
[INFO] [1710419018.078955505] [laserscan_obstacle_detector]: Waiting to configure...

Screenshot from 2024-03-14 17-53-52

Avisheet commented 8 months ago

@Yadunund can you guide me regarding this ? So that I can work further in it

Yadunund commented 8 months ago

The node is a ROS 2 Lifecycle node. it might be worth familiarizing yourself with

To configure and activate the node

# to configure
ros2 lifecycle set /laserscan_obstacle_detector configure
# to activate
ros2 lifecycle set /laserscan_obstacle_detector activate

I shall close this ticket. If you could open a PR to add this documentation that would be appreciated.