Closed chrisuzuki62 closed 1 year ago
Hello @chrisuzuki62 ,
world
).gbplanner_node/occupied_nodes
)The launch files look fine to me. Let me know if this helps.
Best, Mihir
Hello @MihirDharmadhikari,
Thank you for the quick reply. I attached the video of the current results I am seeing running GBP. I am launching the planner using sim1.launch from the previous attachments. (uses rmf config) Is hte result because the uav cannot see any obstacles in front of it?
Thanks, Chris
Here is the link to video since the attachment seems not to work: https://cmu.box.com/s/b6iberwxbul95oyeossja9qvzcfpa8cx
https://github.com/ntnu-arl/gbplanner_ros/assets/97257100/8240f2a4-a35d-4241-9163-a08ff85127d7
Hi @MihirDharmadhikari, I wanted to follow up that unless I manually move the drone in my simulation so more of the walls of the map are included within the Voxel Map the planner will not generate a trajectory.
Hi @chrisuzuki62 ,
Sorry for the late reply, I was out of the office.
It seems that the robot is not in free space when the planner is triggered. In Rviz, under the Voxblox group, you will see a topic for tsdf_pointcloud. If you enable it you will see the area that is mapped by the sensor. Make sure that when you move the robot such that it is in the free space when the planner is triggered. This is usually done through the initialization motion (clicking the Initialization
button on the UI).
Let me know if this helps.
Best, Mihir
Hi @MihirDharmadhikari,
Does the Initialization use the same trajectory command? Also I noticed the exploration tends to come to explore a new region and comeback to the start and go out and explore a new region.
Yes, it uses the same trajectory command. Regarding your comment about the exploration behavior, can you send me an image of the environment to understand how it looks?
Hi @MihirDharmadhikari Here is the image you asked for
Hi @MihirDharmadhikari Another question I had was how should I change the sensor params for a realsense camera. I am a bit confused with the setting since they seem to be made for a lidar. SensorParams: sensor_list: ["OS064"] OS064: type: kLidar max_range: 20.0 center_offset: [0.0, 0.0, 0.0] rotations: [0.0, 0.0, 0.0] fov: [rad(0.785), rad(-0.785)] resolution: [rad(7.0pi/180), rad(7.0pi/180)] frontier_percentage_threshold: 0.04
Hi @chrisuzuki62 ,
Regarding the sensor params, even if you keep the sensor/type as kLidar
it should be fine. It uses a cylindrical sensor frustum model which is slightly different than what a depth camera has but for the purposes of volumetric gain calculation, it is not a problem.
You mainly need to change the following parameters:
rotations
: This is the orientation of the sensor w.r.t. the frame of the body frame of the robot that the odometry solution is providing (e.g. in the demos it is the base_link
).fov
: Set this to that of the sensorRegarding your question about the planner failing, did you try moving the robot to the mapped area before triggering the planner? As I mentioned last time, it seems that when you trigger the planner, the robot is in the unmapped area hence the planner is not able to plan a path. If your sensor is in the front of the robot, then simply doing the initialization motion (by clicking on the Initialization
button in the UI) will work.
Let me know if this works.
Best, Mihir
Hi @MihirDharmadhikari ,
I fixed the issue of the initialization not working and drone now does the initialization motion, however afterwards when I hit start planning the planner will fail if I change the fov. Below is the screenshot of the error with the fov that I used. I also tried fov I mentioned in my earlier post and it failed as well.
Can you send a few lines that were printed in the terminal above the ros::ServiceCallbackHelper<>T::call()
? I want to check which function it failed in.
@MihirDharmadhikari
Hi @chrisuzuki62 ,
I have seen this issue occurring before. One solution, for now, will be to set this parameter to 0
and clean and rebuild the planner_common
and gbplanner
packages. This changes the ray casting method to a basic one which won't have this problem.
Let me know if this works.
Best, Mihir
Hi @MihirDharmadhikari,
Thank you I got the planner to work with different fovs now. I notice however the planner still does not rotate the drone around as much when exploring to face camera to scan unknown area. Also what units are the boundingspace params in. I would like to edit them so the I can test the planner on different sized maps. And how should I edit these params to best test your planner with different maps and within range of our drones sims camera.
Hi I am currently trying to get the GBP Planner to work in our own UAV simulator and I am running into a couple of issues. We have our own controller so I am converting the trajectory message for our controller.
Does it matter if I use smb or rmf configs for gbp? (I am using and editing the original gbp launch file but removed the gazebo portion).
I am using our own UAV simulator and pass in the odometry topic and point cloud topic into the planner (using a realsense camera for pc). Am I missing any other parameters I should changing?
The trajectory generated is only where the drone is spawned and never allows the drone to progress forward. Why is this happening?
Any help would be greatly appreciated. Attached below are my two launch files: sim1.launch.pdf sim2.launch.pdf