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
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 ...
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....
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
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)...
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 ...
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 ...
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....
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
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/...
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 ...
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 ...
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
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 ...
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 ...
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 ...
0
votes
0answers
243 views

What dependencies do I need for USB programing in python with pyUSB?

I am trying to get the usb.find command to work properly in a python script I'm writing on Angstrom for the Beagleboard. Here is my code: ...