-
Notifications
You must be signed in to change notification settings - Fork 8
FAQ
List of random solutions that have empirically worked in the past:
Topic remapping can be used to rename topics but it can only be a part of launch file. remap
Type the following command on the terminal, this solution is temporarily and need to be done on every boot.
sudo date MMDDhhyyyy.ss
Here MM is for the month, dd is for the date, hh is for the hour ,yyyy is for the current year and ss is for the seconds (you can put 00 seconds also)
the setup.sh
script adds custom udev rules to fix the path for navstik and arduino so that we don't have to do it manually on each run. Please check that you have a file /etc/udev/rules.d/99-usb-serial.rules
with the correct rule. also the idVendor
and idProduct
will be different for each specific hardware so if we ever change to a different one we would have to update the rules.
# udev rules setup for imu
echo 'SUBSYSTEM=="tty", ATTRS{idVendor}=="26ac", ATTRS{serial}=="0", ATTRS{idProduct}=="0010", SYMLINK+="navstik"' > /etc/udev/rules.d/99-usb-serial.rules
Lint
is a very important tool to maintain code standards. Lint will list the line number and the exact error that has to be fixed in each file. To remove lint errors run format_xyz.sh
scripts in the utils
folder one by one. Also install the relevant packages for it from setup.sh
script. Format scripts will remove most of the errors, rest can be fixed manually.
mostly the will have openssh-server
and avahi-daemon
installed. So you can ssh using ssh -X <user>@<machine>.local
. In case of odroid it will generally be ssh -X odroid@odroid-server.local
. Here -X
is so that you can open xorg windows in your system i.e. gui of software u run on SSHed machine will open in your machine.
###header files not found during "catkin_make" ?
First make sure the header file is accesable in the include folders specified in CMakeList.txt
. If the header is in some other package then make sure your package lists it as dependency in CMakeList.txt
and package.xml
If that doesn't work then do source ~/catkin_ws/devel/setup.bash
Adding this command in .bashrc
does not always works.
######Reasons not known
So we have to do it manually for each terminal.
rosrun image_view image_view image:=/camera/image_raw
where /camera/image_raw
is the topic on which image is being published.
Unfortunately iitk network that we have in hostel is ipv4, however apt-get while getting packages prefers ipv6, due to which it remains stuck for sometime before timing out and using ipv4, use the following workaround for prefering ipv4.
vim /etc/gai.conf
uncomment
#precedence ::ffff:0:0/96 100
instead of catkin_ws
do catkin_make --pkg turtlebot
Have you run the source command
source /opt/ros/indigo/setup.sh
source ~/catkin_ws/devel/setup.sh
add them to your .bashrc file
You need to add user to "dialout" group to upload code to an Arduino microcontroller over the USB or serial ports. You can do it via terminal or start Arduino Permission Checker to do it automatically. I will judge you if you ask me how to start Arduino Permission Checker, just use the terminal:
sudo adduser user_name dialout
Note: you must logout and login again before any group changes will take effect.
Moderators: Mayank Mittal, Shikher Verma, Suryansh Agarwal . AUV-IITK