-
Notifications
You must be signed in to change notification settings - Fork 8
Common Errors Encountered
Maintainers: Suryansh Agarwal, Akash Kumar Singh
- First check the where the camera is mounted:
cd /dev/vi<TAB>
, - Change the permissions by:
sudo chmod 777 /dev/vi<TAB>
- Make sure that the python code is indented properly.
- Source your catkin workspace.
- If the camera is not running inspite of correct node then its user permissions should be changed.
- For identifying the port, connect only one camera at a time for identifying the port, run the command
$ls /dev/video*
. - After obtaining the port of camera, run the commands
$sudo chmod 777 /dev/<---camera port--->
and$sudo chown auviitk:auviitk /dev/<---camera port--->
.
- Run the commands
$mv .zsh_history .zsh_history_bad
then$strings .zsh_history_bad > .zsh_history
and$fc -R .zsh_history
.
In computing, a segmentation fault (often shortened to segfault) or access violation is a fault, or failure condition, raised by hardware with memory protection, notifying an operating system (OS), that the software has attempted to access a restricted area of memory (a memory access violation).
-
One way is to print something after every code block where there is a possibility of error.By doing this, one can know after which code block there is problem and then resolve it.
NOTE: A precaution that one should take is that one must not do anything with the subscribed image from the topic with the command
newframe = cv_bridge::toCvShare(msg, "bgr8")->image
in anytask_handler
node, because anything changed to it will also change the raw ros image which we are getting from the topic ,which results into a segmentation fault.
Moderators: Mayank Mittal, Shikher Verma, Suryansh Agarwal . AUV-IITK