Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.
Questions tagged [python]
932 questions
2
votes
0 answers
How to implement stop sign XML cascade?
After training my RC car, I use the following command:
python drive.py --model trainmodel.h5
This gives me IP where I can go and see if the testing was successful and the car can avoid white lines.
However, I don't know how to implement in the code…
user23535
- 21
- 1
1
vote
1 answer
Python3 Modules for motor movement
Are there any Python3 modules used to program robotic movement by declaring a device or component and then providing the instructions? I am not looking for modules that test the components.
Devyn Collier Johnson
- 157
- 11
0
votes
1 answer
ROS2 how do you publish an int array as a message in python? I get vague "raise TypeError()" when i try
I want to publish 3 ints as a message but i'm getting this vague error that I'm not sure how to solve this.
This is the relevant bit of my code:
self.publisher = self.create_publisher(
Int32,
'wheel_settings',
10)
#test publishing wheel…
rydb
0
votes
1 answer
Gfile error Tensorflow in ROS
Hello.
I am trying to create a node for image classification using ROS and Tensorflow.
If I run this script with python, everything works perfectly with some differents networks:
import pyrealsense2 as rs
import numpy as np
import cv2
import…
Alessandro Melino
0
votes
2 answers
QOS python code for create_subscriber
Hi I have tried various code snippets but have not been able to create correct code for sensor QOS definition for a service
I am writing in python
self.speed_subscription = self.create_subscription(
Int32,
'distance',
…
maxbback
0
votes
1 answer
Minimising jerk by publishing faster than subscribing
Is there a way I could publish a node at a different rate of subscribing?
I do intend to have a python script instercept /cmd_vel and publish it 5 times faster in incrementally.
For eg:
pub = rospy.Publisher("/cmd_vel",…
Alsing
0
votes
1 answer
Get information from 'mongo_store' using partial information of '_meta.name' field
I am working with 'ROSPlan' and 'rosplan_interface' packages, and I am trying to get an object of the 'mongodb_store' using only its name, that is stored in an predefined field named 'name'. Please, see below the Mongo DB.
Although in 'name' is…
dgerod
0
votes
1 answer
ROS_ERROS STREAM in Python
I want to know what is the equivalent of the function ROS_ERROR_STREAM in python
Originally posted by Younès on ROS Answers with karma: 27 on 2017-09-02
Post score: 0
Younès
0
votes
1 answer
import python modules failed...what am I missing?
Hello guys,
I have a question about importing my own python modules from a package I wrote.
I am using ROS Indigo on Ubuntu 14.04.
According to
setup.py manual
install python
Assuming I have a package called mape_misc under catkin_ws/src,
the…
mutantRobot
0
votes
1 answer
Sentence.msg Header Missing
I'm trying to use the nmea_msgs/Sentence message and I'm stumped on what is probably a python problem.
I've built the package and I can see the results in devel/
$ ls ~/catkin_ws/devel/lib/python2.7/dist-packages/nmea_msgs/msg
__init__.py …
vschmidt
0
votes
1 answer
python virtualenvs conflict with kinetic
I set up a virtualenvs for python 3.1 with opencv3. But when I am in the virtual env and execute python import cv2. Apparently you have to create a link of the 3.1.so file to cv2.so . I get an error relating to cv2 /opt/ros/kinetic . I do not…
rnunziata
0
votes
1 answer
ROS installation on ARCH LINUX : qt or shiboken error
I tried to install ROS JADE on my new arch linux machine via AUR repos using yaourt
and I can't even understand the error. sure something in python maybe a dependency related to qt
but I am not able to understand what it is. See the screenshot
the…
Dexter
0
votes
1 answer
How to create ROS subscriber which will remember the last message until the new one?
Hello.
I use python.
I want to use the loop based on data of Publisher.
For example, If I get the data == 1, I need to print "Hello" every 3 seconds, until when I will receive the new message with another data.
Please help me.
Originally posted by…
Tvlad
0
votes
1 answer
howto use int16multiarray in python
hi,
how do i use int16multiarray in python ? when i got this code:
#!/usr/bin/env python
# license removed for brevity
import rospy
from std_msgs.msg import String
from std_msgs.msg import Int16MultiArray
def talker():
pub =…
inflo
0
votes
1 answer
Is it possible to use more than one client library in the same workspace?
I purchased a book that uses the python client library on ROS Indigo on Ubuntu 14.04.
I would like to follow the code examples in the book and test them in my catkin workspace; then I would like to convert the python code examples to the Julia…
TurtleBot_Fan