Open in app
Home
Notifications
Lists
Stories

Write
Talha Hanif Butt
Talha Hanif Butt

Home
About

Jun 9

Basics before starting with Robotics — Part 7

Services in ROS — So, I have written about an initial Hello World program in ROS: Basics before starting with Robotics — Part 5 Hello World in ROSthanifbutt.medium.com I followed it up with Topics in ROS: Basics before starting with Robotics — Part 6 Topics in ROSthanifbutt.medium.com Today, I will discuss Services in ROS. Services are another way to pass data between nodes in ROS. Services are just synchronous remote procedure calls; they allow one node to call…

Ros

9 min read

Basics before starting with Robotics — Part 7
Basics before starting with Robotics — Part 7

May 27

Best Student Paper Award

Camera Calibration through Camera Projection Loss @ ICASSP 2022 — So, today I received the Best Student Paper Award at ICASSP 2022 for my work on Camera Calibration through Camera Projection Loss. The story behind the work goes as follows: It was 10th February, 2019 when I first met Dr. Murtaza Taj with an aim of doing some research work…

Camera Calibration

2 min read


Apr 25

Solution 11

TensorFlow, “‘module’ object has no attribute ‘placeholder’” — Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32) use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32) if you don't want to disable v2 completely. References TensorFlow, "'module' object has no attribute 'placeholder'" I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and…stackoverflow.com

Tensor Flow

1 min read

Solution 11

TensorFlow, “‘module’ object has no attribute ‘placeholder’”

Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32) use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32) if you don't want to disable v2 completely.

References

TensorFlow, "'module' object has no attribute 'placeholder'"

I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and…

stackoverflow.com

--

--


Apr 22

Solution 10

After installing ROS Kinetic, cannot import OpenCV — ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages' if ros_path in sys.path: sys.path.remove(ros_path) import cv2 sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages') References After install ROS Kinetic, cannot import OpenCV As pointed out, the source /opt/ros/kinetic/setup.bash command in your .bashrc modifies the PYTHONPATH to be: > echo…stackoverflow.com

Ros

1 min read

Solution 10

After installing ROS Kinetic, cannot import OpenCV

ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'

if ros_path in sys.path:

sys.path.remove(ros_path)

import cv2

sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')

References

After install ROS Kinetic, cannot import OpenCV

As pointed out, the source /opt/ros/kinetic/setup.bash command in your .bashrc modifies the PYTHONPATH to be: > echo…

stackoverflow.com

--

--


Apr 6

Basics before starting with Robotics — Part 6

Topics in ROS — I have previously written about some basics of ROS here: Basics before starting with Robotics — Part 5 Hello World in ROSthanifbutt.medium.com Things only get interesting when nodes communicate with each other, exchanging information and data. The most common way to do that is through topics. A topic is a name for a stream of messages with a defined type. For example…

Ros

13 min read

Basics before starting with Robotics — Part 6
Basics before starting with Robotics — Part 6

Apr 3

Solution 9

ModuleNotFoundError: No module named ‘rospkg’ — Try to change the shebang (line 1) according to the python version your ROS distro works with: For melodic or earlier: #!/usr/bin/env python2 For noetic or later: #!/usr/bin/env python3 References ModuleNotFoundError: No module named 'rospkg' I am new to ROS, I have a problem when I import rospy into my script file example.py and run it: It says: Traceback…stackoverflow.com

Ros

1 min read

Solution 9

ModuleNotFoundError: No module named ‘rospkg’

Try to change the shebang (line 1) according to the python version your ROS distro works with:

For melodic or earlier: #!/usr/bin/env python2

For noetic or later: #!/usr/bin/env python3

References

ModuleNotFoundError: No module named 'rospkg'

I am new to ROS, I have a problem when I import rospy into my script file example.py and run it: It says: Traceback…

stackoverflow.com

--

--


Apr 2

Basics before starting with Robotics — Part 5

Hello World in ROS — I am currently trying to learn ROS (Robot Operating System) by reading the book “Programming Robots with ROS A Practical Introduction to the Robot Operating System”. It’s a good read and I have enjoyed it thus far. What have I learned is as follows: The ROS Graph Some of the design goals of…

Hello World

18 min read

Basics before starting with Robotics — Part 5
Basics before starting with Robotics — Part 5

Mar 30

Solution 8

gnutls_handshake() failed: Error in the pull function. — sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev References Git: gnutls_handshake() failed: Error in the pull function Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share…stackoverflow.com

Git

1 min read

Solution 8

gnutls_handshake() failed: Error in the pull function.

sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev

References

Git: gnutls_handshake() failed: Error in the pull function

Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share…

stackoverflow.com

--

--


Mar 10

A step closer to my PhD

Final Interview at Bonn — So, I had my final interview for a Ph.D. position at the University of Bonn two days back. I received the offer yesterday. The overall process was as follows: I got to know about the position through the robotics-worldwide google group. I followed it up by sending an email to…

Ph D

3 min read


Mar 6

Solution 7

The following packages have unmet dependencies: ros-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed — sudo gedit /etc/apt/sources.list copy-paste the following lines. deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

Ros

1 min read

Talha Hanif Butt

Talha Hanif Butt

MS Thesis Student, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

Following
  • umair haque

    umair haque

  • Faisal Khan

    Faisal Khan

  • Ahmar Shah, PhD (Oxford)

    Ahmar Shah, PhD (Oxford)

  • Verkada

    Verkada

  • Izhar Khalil

    Izhar Khalil

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable