Hello Construct Team and Forum members,
If it is possible I’d like to ask several questions regarding the project, mentioned in this topic.
This is a first project, linked to the course “C++ Basics”
-
I can not resolve the mystery of a different forward/backward speed in simulation and lab environment. In this project, moving the robot is straightforward - assign a value to the interface class attribute. I believe it implements polling and posts the required message.
I just assign robot_interface_->linear_velocity with positive or negative values. I noticed my robot moves backward always faster than forward. If I time both moves with the same simple delay, my robot moves a notably different distance backward. -
Robot’s scan returns range angle increment of 0.01 Rad, which supposed to result in 628 range samples. However, ranges vector size is 660 samples. How come ? What number I should rely on in exercises ? Increment or actual number of samples?
-
" Part 3 - Obstacle Prediction Algorithm". I understand the approach, however range values multiplied by 100 and converted to int ALWAYS return several identical samples. Especially those, resulting in two digit numbers. For example - 0.250 and 0.257 will result into the same number 25. Maybe the multiplier should be 1000 ?
-
Running a loop for Naive Obstacle Avoider without a small delay (~200ms) results in a segmentation fault. This happens when I attempt to change the direction. In this loop I constantly assign linear or angular velocity of the interface class. Is there a clash with the polling/posting of those in the interface class?
I appreciate any assistance. Thank you !
Dmitry