Closed hhhhgggg80 closed 1 year ago
Hi @hhhhgggg80 ,
Sorry for the delay.
I see that you have changed the robot_name
parameter. In this case, you will have to create a folder with the same name in the config folder where the yaml files are located. Otherwise, the planner won't be able to load the parameters.
Second, press the initialize
button before pressing start planner
.
If these things are already done, check what the planner node prints in the terminal when you press start planner. If the planner is unable to plan it will print out the error. Also, check if any errors/warnings are printed in the terminal when you launch the file. Can you let me know the above two things?
Best, Mihir
Hi, @MihirDharmadhikari
Thank you for your reply. I followed your advices and checked the module again. The terminal didn't print something like warnings or errs. It seems like that, the module I used does not publish the topic /groud_truth/state
. After modifying the gazebo plugin into the urdf file, the planner works fine.
<plugin name="p3d_base_controller" filename="libgazebo_ros_p3d.so">
By the way, if I want to integrate the gbplanner2 with a slam method, I need to remap the robot state to the topic /groud_truth/state
. Is it right? Or is there anything else to change?
Hi @hhhhgggg80 ,
Glad to hear the issue got resolved.
To use the planner with a SLAM method, you need to provide the correct odometry topic here or remap it to /ground_truth/state
as you mentioned. In addition, you need to specify the correct point cloud topic here.
Make sure that your SLAM method provides a tf between the fixed frame and the frame in which the point cloud is expressed. If it provides the tf to another frame on the robot, you will have to add a static transform between that frame and the sensor frame of the point cloud.
Finally, add a static transform from the fixed frame of the SLAM solution to the frame world
. The planner assumes that the z
axis is upwards, i.e. in the opposite direction of gravity.
Best, Mihir
@MihirDharmadhikari Thank you for your attentive advises.
Hi, I am trying to using an agv with a lidar on it. So I tried to modified the smb_sim.launch like below. It turn out that, Voxblox had results on RViz, but planner did not work when I click the "start planner" button.
And, when I tried to use original module(smb.urdf.xacro), it worked and command trajectory was shown on Rviz . So I am wandering how to integrating the planner.
Looking forward to your reply.