Ask Your Question

kwint's profile - activity

2021-02-01 04:10:39 -0500 received badge  Famous Question (source)
2020-03-11 19:28:07 -0500 received badge  Taxonomist
2019-10-17 09:52:32 -0500 received badge  Good Question (source)
2019-09-19 17:38:01 -0500 received badge  Nice Question (source)
2019-09-13 16:56:38 -0500 marked best answer ImportError: No module named msg

I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed the instructions in the file, so the package.xml has the right dependencies. I also followed these answers on this similar questions: https://answers.ros.org/question/1057... and https://answers.ros.org/question/2716...

But i still get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/catkin_ws/src/pozyx_ros_examples/src/pozyx_node.py", line 7, in <module>
    from pozyx_ros_examples.msg import DeviceRange, EulerAngles
ImportError: No module named msg

My package.xml and CMakeLists.txt are in gist: https://gist.github.com/kwint/09ab135...

I'm running lubuntu 16.04 on a raspberry pi.

.
├── CMakeLists.txt
├── __init__.py
├── msg
│   ├── DeviceRange.msg
│   ├── EulerAngles.msg
│   └── __init__.py
├── package.xml
└── src
    ├── pozyx_node.py
    └── setup_nodes
        └── pozyx_configuration.py

The weird thing is that when I run this package on my local computer it works perfectly (which runs ubuntu 16.04)

2019-08-27 20:31:19 -0500 received badge  Stellar Question (source)
2019-08-03 19:14:52 -0500 received badge  Favorite Question (source)
2019-07-18 16:43:55 -0500 received badge  Famous Question (source)
2019-07-04 14:01:53 -0500 commented question Compiling ROS on raspberry pi 4 with Buster, problem with libboost1.58

I got the same errors. So I got this working in the end, but I'm not sure how. Here are the steps I toke, you might have

2019-07-04 12:16:00 -0500 received badge  Notable Question (source)
2019-07-04 12:16:00 -0500 received badge  Popular Question (source)
2019-07-02 09:33:36 -0500 edited question libboost compiling error on Raspberry Pi 4 with buster

libboost compiling error with on Raspberry Pi 4 with buster Hi, I'm following this guide from the wiki: http://wiki.ros

2019-07-02 09:21:36 -0500 asked a question libboost compiling error on Raspberry Pi 4 with buster

libboost compiling error with on Raspberry Pi 4 with buster Hi, I'm following this guide from the wiki: http://wiki.ros

2019-07-02 09:18:33 -0500 asked a question Compiling ROS on raspberry pi 4 with Buster, problem with libboost1.58

Compiling ROS on raspberry pi 4 with Buster, problem with libboost1.58 Hi, I'm following this guide from the wiki: http

2019-03-28 03:45:00 -0500 received badge  Famous Question (source)
2019-03-28 03:45:00 -0500 received badge  Notable Question (source)
2019-01-21 08:46:23 -0500 received badge  Notable Question (source)
2019-01-21 07:38:52 -0500 marked best answer Python can't open file when running with ros

Hi.

I have a simple pygame script that shows some images on screen. The script works when I run it with python, but once I run it with ROS (rosrun or roslaunch) pygame can't open some files. I'm thinking this has something to do with the permissions of the file, but I don't know how to fix this.

This is the error:

Traceback (most recent call last):
  File "/home/kwint/catkin_ws/src/rolly/src/main.py", line 30, in <module>
    pygame.mixer.music.load(src_dir + "/" + 'beep.ogg')
pygame.error: Couldn't open '~/catkin_ws/src/rolly/src/beep.ogg'

The same error occurs when loading images

Although I don't think the error is in my code, the script can be read here: https://github.com/kwint/TrashNodes/b...

2019-01-21 06:41:56 -0500 commented answer Python can't open file when running with ros

Yes that's it. The same error occurs when I start it with sh. I didn't receive errors before because I was using bash. T

2019-01-21 06:41:49 -0500 commented answer Python can't open file when running with ros

Yes that's it. The same error occurs when I start it with sh. I didn't receive errors before because I was using `bash

2019-01-21 06:41:31 -0500 commented answer Python can't open file when running with ros

Yes that's it. The same error occurs when I start it with sh. I didn't receive errors before because I was using `bash

2019-01-21 06:41:06 -0500 commented answer Python can't open file when running with ros

Yes that's it. The same error occurs when I start it with sh. I didn't receive errors before because I was using `bash

2019-01-21 05:52:03 -0500 received badge  Popular Question (source)
2019-01-21 05:15:03 -0500 commented question Python can't open file when running with ros

That did the trick! Weird that when running a script with just python the ~ does work, but with ros not.

2019-01-21 04:56:59 -0500 edited question Python can't open file when running with ros

Python can't open file when running with ros Hi. I have a simple pygame script that shows some images on screen. The sc

2019-01-21 04:55:26 -0500 edited question Python can't open file when running with ros

Python can't open file when running with ros Hi. I have a simple pygame script that shows some images on screen. The sc

2019-01-21 04:54:43 -0500 asked a question Python can't open file when running with ros

Python can't open file when running with ros Hi. I have a simple pygame script that shows some images on screen. The sc

2018-12-27 06:16:17 -0500 received badge  Notable Question (source)
2018-10-04 00:30:53 -0500 received badge  Famous Question (source)
2018-05-14 09:23:36 -0500 received badge  Popular Question (source)
2018-05-10 07:28:52 -0500 received badge  Famous Question (source)
2018-04-12 02:05:49 -0500 received badge  Popular Question (source)
2018-04-11 08:17:39 -0500 marked best answer Start odometry with bias depending on Pose

Hi, I want to fuse two localization methods, odometry and a PoseWithCovariance sensor. When the robot "starts" it already has a location and rotation from the PoseWithCovariance sensor (like x=4 and y=3 etc) But the odometry is (0,0,0, etc), how do I make sure that both systems start at the same position?

Of course, the two coordinates will change and be different from each other as time goes, which is expected. To get an accurate position I'm going to use an EKF from robot_localization. So I don't need a constant transform between the two, just only at the start.

My odometry uses the odom and base_link frames (as the standard) and the Pose messages has the frame_id odom.

What is the best way to do this?

2018-04-11 08:17:39 -0500 received badge  Scholar (source)
2018-04-11 08:17:38 -0500 commented answer Start odometry with bias depending on Pose

So if set the pos and odom to use relative they both start at (0,0) right? I'll look into the velocity thing. Thank you

2018-04-11 08:15:38 -0500 received badge  Supporter (source)
2018-04-11 04:26:38 -0500 asked a question Start odometry with bias depending on Pose

Start odometry with bias depending on Pose Hi, I want to fuse two localization methods, odometry and a PoseWithCovarian

2018-04-06 07:24:26 -0500 received badge  Notable Question (source)
2018-04-06 07:22:27 -0500 commented question ImportError: No module named msg

That might have been the solution, __init__.py was empty. But I make a completely new ros module and just copied the msg

2018-04-06 06:28:31 -0500 received badge  Popular Question (source)
2018-04-06 06:16:54 -0500 edited question ImportError: No module named msg

ImportError: No module named msg I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed t

2018-04-06 06:16:12 -0500 commented question ImportError: No module named msg

Yes I have, also source the setup.bash file

2018-04-06 05:55:25 -0500 edited question ImportError: No module named msg

ImportError: No module named msg I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed t

2018-04-06 05:48:35 -0500 received badge  Student (source)
2018-04-06 05:35:26 -0500 asked a question ImportError: No module named msg

ImportError: No module named msg I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed t

2018-04-06 03:56:29 -0500 received badge  Enthusiast
2018-03-27 09:02:04 -0500 commented question Node slowing down other node on raspberry PI

I found out that I was using the I2C ports of the Raspberry, which the GoPiGo board might also use, so I changed them. I

2018-03-27 08:46:39 -0500 commented question Node slowing down other node on raspberry PI

Thanks for thinking along! Removing all "use of ROS" gives the same issue. So it has to be that the GPIO pins interfere