ros-perception / ros-perception/laser_geometry
When I use the function projectorLaser(), the core dumped.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 164
- Forks
- 120
- Avg merge
- 21h 35m
- Merged PRs (30d)
- 1
Description
I wirte a laserscanSub callback function which is used to process the laser scan.But when I try to projectroLaser the sensor_msgs::LaserScan to sensor_msgs::PointCloud, I get the result: Segmentation fault(core dumped).The code is as below:
void Scanprocess::laserscanSubCallback(const sensor_msgs::LaserScanConstPtr &msg)
{
if (msg == NULL)
{
ROS_INFO("msg is a nullptr.");
return;
}
std::cout << msg << std::endl;
projector_->projectLaser(*msg, cloud_in_scan_);
}
I find the reason is :aborting core dump writing, size exceeds current limit 1048576.The address of msg is bigger than the limit.Could someone give me some suggestions?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Scanprocess::laserscanSubCallback and the projector_->projectLaser(*msg, cloud_in_scan_) call shown in the report. Reproduce the callback with the reported LaserScan input and inspect where the segmentation fault occurs; done means projecting the scan completes without a core dump and produces the expected PointCloud.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- robotics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100