Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python]

Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.

0
votes
1answer
26 views

Head movement using gyroscope

I have a headset that provides 3 axis gyroscope readings. I wish to find out movement of head for e.g. if a person is nodding left to right etc. But the headset give me values in angular velocity for ...
1
vote
0answers
5 views

iRobot Create 2 Wake over Serial on Rpi

So this thread is similiar to this one: IRobot Create 2: Powering Up after Sleep All except I am trying to do this on an RPi. I have followed these intstruction: https://www.irobotweb.com/-/media/...
0
votes
1answer
25 views

Convert local coordinates of a moving IMU to global coordinates

I am trying to compare the performance of an IMU in motion against an optical tracking system. The IMU has an accelerometer and a gyroscope and gives output in the local IMU coordinate frames. The ...
0
votes
1answer
32 views

Microcontrollers and Python

So I am fairly new to robotics however I do have some background with the python coding language. Recently I set myself the task of learning some basics for robotics just to increase my knowledge base....
1
vote
1answer
39 views

Is rospython subscriber thread safe?

I'm trying to write a python node, which has one class and two member functions as callback functions. so a TimeSynchronizer and Subscriber in a node. I saw in this link and tested that python ...
1
vote
1answer
36 views

Why won't my PID line follower work?

I'm trying to implement a PID based line follower. The robot has 2 line sensors with ranges from 0-200, with 0 being black and 200 being white. I'm trying to follow a black line. I'm struggling to ...
1
vote
0answers
34 views

help to find the bug for calculating inverse kinematic using jacobian

I am calculating inverse kinematic for 5dof robotic arm using Jacobian matrix (first time). i used following formulas to do my calculation and also implemented in my code. for more information please ...
0
votes
1answer
35 views

Image data fusion

I have three cameras separated by some distance, looking at a scene. I have calibrated them using checkerboard and I have their respective intrinsic parameters and their pose and rotation matrix, I am ...
1
vote
0answers
22 views

Writing IMU accelerometer data into as twist messages into cmd_vel

I am reading accelerometer data from the wiimote /wiimote/state topic. A sample of the data I'm working with is as follows: ...
1
vote
0answers
168 views

python code for closed form inverse kinematics solution

I solved the inverse kinematics of a 4DOF robotic arm (which is not planar) and I wrote this code bellow in python. The coordinates for each joint is: I considered the first three joints as a wrist ...
3
votes
1answer
82 views

Wait simulation time in a non realtime ROS simulation en python

I want to control a quadrotor with a Python script and run the simulation as fast as my laptop can, not only in real time. I've modified my world and now the simulation runs with 7-10 real time factor....
0
votes
1answer
18 views

Fixing robot orientation using AR

I am creating a project where a robot needs to face a control panel and do some specific tasks. Some reference tags will be placed on the panel. I want to use the tags as AR reference and fix my ...
1
vote
1answer
413 views

MSP (Multiwii Serial Protocol) receiving data with pyMultiWii issue

I want to get telemetry data from my flight controller (Matek F405-CTR) and send control commands to it via MSP protocol. I've already configured UART3 port on Matek in Inav configurator (look at pic)...
0
votes
0answers
25 views

Use python in JADE plateform

I implemented 2 deep learning algorithms in python. I want to create a multi agent system in such way each agent execute one algoritm. I'm looking for good python framework for MAS without success. I ...
2
votes
1answer
149 views

Are both of C++ and Python necessary in ROS

I'm a newbie on ROS and I'm trying to figure out how ROS works so I'm installing ROS from source. I've found that most of ROS packages contains two kinds of codes: C++ and Python. For example, here ...
0
votes
0answers
107 views

how to get gps data from from mav.tlog using pymavlink

I've been able to use pymavlink.mavutil to read telemetry from a .tlog created by pixhawk flight controller in raspberrpi. data = mavutil.mavlink_connection('mav.tlog') Now I want to read specific ...
0
votes
0answers
136 views

How to find jacobian using kdl that matches with bullet physics jacobian

I am trying to calculate jacobian with kdl (pykdl) and bullet physics (pybullet). With bullet physics I can only find Jacobian of whole robot, but I want to find Jacobian for a kinematic chain. So I ...
1
vote
1answer
63 views

How can I access the cliff sensors on an iRobot Create 2 via ROS/ Python?

I have an iRobot Create 2 and am currently using the create_autonomy package. Currently, they have cliff sensors as a "planned" feature. I see in the documentation that there are 4 cliff sensors (...
0
votes
1answer
39 views

Main not defined package python issue

My apologies but I've run out of ideas. I'm very new to python and stuck trying to execute the following code from this tutorial: ...
0
votes
1answer
23 views

Talking to a Flask Webserver from a Commandline

Have a bunch of work in setting up a flask webserver to control a robot from an app, and I'm not too pleased with the results for driving. Touch sensitivity issues are driving me nuts, and looking to ...
0
votes
1answer
59 views

How to become proficient in software development for an aspiring roboticist? [closed]

I am a masters student specializing in Robotics. I have a bachelors degree in Mechanical engineering and hence a bit sloppy with programming languages. MATLAB is one thing I am proficient in. But ...
1
vote
0answers
392 views

How can I send commands from raspberry pi model 3B to Seriously Pro 3 Flight controller? [duplicate]

I am trying to make a quadcopter that receives commands from my android mobile phone. I currently have the following: Raspberry Pi 3 Model B running on Raspbian. Pi Camera Seriously Pro F3 Flight ...
0
votes
0answers
56 views

How to create a planning scene within fcl using python

I am trying to work on a custom planner for the robot. I need to create to create a planning scene for the same. From here, I can see that FCL can be used to create planning scene with the obstacles ...
-1
votes
2answers
205 views

Using ROS to control a CMM (Coordinate Measuring machine)

i'm a senior, i really desperate to find answers here. i am building a robotic arm with bunch of low-cost sensors , motors and other actuators. i'm using PI 3 as my Microcontroller. I need helping to ...
0
votes
1answer
53 views

Programming the Formula Allcode to run a circuit

In our engineering science lesson, my class has been tasked with programming the Formula Allcode buggy to run a pre-specified circuit with smooth turns. The issue we are having is that we do not know ...
1
vote
1answer
2k views

Determine the relative camera pose given two RGB camera frames in openCV-python

I would like to determine the relative camera pose given two RGB camera frames. I assume there's overlap in field of view between the two cameras, what I am looking for ultimately is the rotation and ...
0
votes
2answers
322 views

Error starting image_view video_recorder using launch file

To record .avi video, I am using video_recorder for the image_view package. I want to do this through the launch file. Here is the how I put it in there ...
1
vote
0answers
53 views

Drone Feedback: Object Detection / Color Detection [closed]

I have been working on a code where an A.R Drone 2.0 will detect color and put a red dot in the middle of the image. I am using streaming for the drone. The goal is for the drone to detect a white ...
1
vote
0answers
189 views

Continual error attempting to use MicroPython with HC-SR04 sensor on Bit:Bot

On my Bit:Bot from 4Tronix ([see here])1 I have an HC-SR04 ultrasound sensor attached. It uses solely pin15, for both trig and echo. I am able to use Microsoft MakeCode 'block editor' to get a ...
0
votes
1answer
359 views

Programming Roomba other than Create 2 using RaspberryPi [duplicate]

Do other Roombas have an Open Interface like the Create2? Can I send commands to my 780 like the Create 2? I am trying to control my Roomba 780 I made a 8pin FDTI connector to USB and my roomba beep ...
2
votes
2answers
189 views

Localization within a map with gyro, accelerometer and magnetometer

My goal is to locate precision within a known map. If the size of the map is known, a rectangle 4 x 3 m, and I know the initial position and orientation of the robot, after a certain period of time ...
2
votes
0answers
206 views

Obstacle avoiding by Pi camera [closed]

I designed a mobile robot with my colleagues for our graduation project, the purpose of it is to detect mines (metals) in a specific area We are programming the robot using Python on Raspberry Pi 3 ...
3
votes
1answer
1k views

Converting Image Coordinates to (x, y) Position for Robotic Arm

I have a Robotic Arm with a camera mounted above it looking down at a slight angle. Assuming I know the height of the camera, the angle of tilt and the small distance from the center of the robot ...
1
vote
1answer
240 views

Transform timestamped messages recorded in a bag file using tf messages

Note: this question was also asked in the ROS official Q&A website, but even after one week nobody has given me an answer. I have a .bag which contains ...
2
votes
2answers
787 views

How to convert raw Pitot tube readings to air speed in m/s?

I'm building a kite flying robot, for which I want to measure air speed. So I combined a Pitot tube with an ADC and connected it to my Raspberry Pi using this tutorial. It seems to work perfect, in ...
1
vote
1answer
393 views

Is pyserial real time

I am using arduino with FreeRTOS and a computer with patched xenomai linux. I am using python library called pyserial to communicate with arduino. Right now I am using simple servo motors. I want to ...
1
vote
1answer
4k views

Creating MAVLink commands from python

I am struggling to find any clear documentation on how to create MAVlink commands using python. I am looking to create an autonomous glider and require some of the basic functions Retrieve GPS Data ...
0
votes
1answer
846 views

How to make sense of IMU (BNO055) data

I have a project that I'm working on that needs data about which directions something has moved and how quickly from a given point (accelerometer and magnetometer?). I have the working python code for ...
0
votes
1answer
1k views

Tuning PID controller for sharp turns in line follower robot

I'm working on a TWDD line-following robot using qtr-8a reflectance sensor array. The sensors are connected to BeagleBone Black, and BBB is sending the speed serially to an arduino Due. My approach is ...
3
votes
2answers
501 views

Adafruit PCA9685 servo driver connected to Beaglebone Green Wireless generating erratic movement when driving multiple servos

I have a hexapod that a friend and I built this summer, but there is a big problem whenever we try to move multiple servos. When using the Adafruit_Python_PCA9685 library, I am able to move the servos ...
0
votes
1answer
413 views

Self Driving Robotics Project : ROS or Python [closed]

So, I am working on building a simple self driving tank (small) that needs to navigate a large hall. I plan to use ultrasonics, LIDAR and a Kinect. I am pretty happy with how I will build all of ...
4
votes
1answer
305 views

ROS Installation Error : ARCH LINUX

So I had this old lappy on which I used to play with ROS a lot then it got broken so I bought a new one and installed the same distro as that of old one i.e. arch linux. Now when I am installing the ...
3
votes
1answer
487 views

Choice of a motor for robotic arm

This is my first post here, so hello all. I really hope I can learn a lot from you guys. I am trying to build a robotic arm to carry an object and put it inside of different boxes that are placed in ...
6
votes
2answers
531 views

A Vector Field Histogram implementation in Python 2.7

I am trying to implement the Vector Field Histogram as described by Borenstein, Koren, 1991 in Python 2.7 using the SciPy stack. I have already been able to calculate the polar histogram, as ...
4
votes
2answers
493 views

Check collision between robot and environment in OpenRAVE

I have a robot arm in an environment. How can I check for collision between this robot arm and the environment?
0
votes
2answers
9k views

Running my 3 DOF Inverse Kinematics Code: Works in MATLAB, not in Python

I asked a question similar to this earlier, but I believe I have a new problem. I've been working on figuring out the inverse kinematics given an x,y,z coordinate. I've adopted the Jacobian method, ...
0
votes
1answer
1k views

3 DOF Inverse Kinematics Implementation: What's wrong with my code?

I am currently trying to implement an Inverse Kinematics solver for Baxter's arm using only 3 pitch DOF (that is why the yGoal value is redundant, that is the axis of revolution). I for the most part ...
1
vote
2answers
655 views

Issue with multiple bytes from Irobot Create 2

I was having problems reading sensor information from my Irobot Create 2 and sent an email asking for help from the Irobot staff. They were super helpful and gave me an answer(the next day!!!) that ...
0
votes
1answer
90 views

EKF over-correcting?

I've been implementing an extended kalman filter, following Thrun's Probabilistic Robotics implementation. I believe my correct step may be wrong, as the state appears to be corrected far too much. ...
1
vote
1answer
710 views

EKF-SLAM Computing the jacobians for landmark updates

I've been working through this informative guide on EKF-SLAM but I'm having difficulty understanding the jacobians required for the 'landmark update', on page 35. What exactly is Jxr and Jz taking as ...