Ask Your Question

that_guy318's profile - activity

2017-03-06 12:16:00 -0500 received badge  Taxonomist
2016-05-08 15:49:10 -0500 marked best answer Illegal Instruction when trying to run raspicam_node

As the title says, I'm trying to get fpasteau's raspicam_node working on my Raspberry Pi B+. After 3 days I finally got all of the dependencies resolved and catkin_make completes successfully.

Now when I go and try to run the raspicam_node using

 rosrun raspicam raspicam_node

with or without any parameters I just get a cryptic illegal instruction message:

 /home/pi/ros_catkin_ws/devel/bin/rosrun: line 4: Illegal instruction   
 "/home/pi/ros_catkin_ws/src/ros/rosbash/scripts/rosrun" "@"

I've looked all over the place but haven't found anything that is helpful. The most I've found is some people suggesting an issue with OpenCV. I had to compile and install OpenCV 2.4.9 from source on the Pi (took 15 hours) because it only had version 2.4.1 on it to begin with and catkin would get hung up while making it saying something along the lines of stuff not being defined in cv.h.

The other nodes that I wrote still run fine, just the raspicam_node won't work.

Any ideas?

Thanks -Matt

2016-04-17 18:03:56 -0500 commented question Issues with RViz and Displaying IMU data

You didn't give the script any input or output files then, input.bag (in directory you ran script from) is what it defaults if you give it no arguments.

2016-04-05 20:06:53 -0500 commented question Issues with RViz and Displaying IMU data

Yes I did. I had to go in and manually add a frame id to the bagfiles. I wrote a quick Python script to update the bags. It's been about a year since I've messed with any of this, so hopefully this still works.

Here's the link to that script on github (had to shorten) https://goo.gl/mCegBY

2015-09-15 13:03:31 -0500 received badge  Student (source)
2015-06-05 08:38:57 -0500 received badge  Famous Question (source)
2015-04-27 12:25:52 -0500 received badge  Famous Question (source)
2015-03-30 15:28:42 -0500 received badge  Notable Question (source)
2015-03-30 15:28:42 -0500 received badge  Famous Question (source)
2015-03-25 21:30:29 -0500 received badge  Notable Question (source)
2015-03-25 21:29:19 -0500 received badge  Notable Question (source)
2015-02-09 05:34:25 -0500 received badge  Popular Question (source)
2015-02-09 05:33:40 -0500 received badge  Scholar (source)
2015-02-09 05:33:35 -0500 commented answer Issues with RViz and Displaying IMU data

Ok, so I finally did manage to get frame ids written to the bag (wish there was better documentation for the ros cookbook), and now it does display the acceleration vector. Thanks.

2015-02-09 05:31:51 -0500 received badge  Supporter (source)
2015-02-09 05:31:49 -0500 commented answer Issue trying to modify bag contents with python

Awesome that worked, thanks! I couldn't find anywhere that actually said what that function was expecting. RViz is now displaying my acceleration vector too.

2015-02-09 01:54:28 -0500 received badge  Popular Question (source)
2015-02-08 22:19:19 -0500 asked a question Issue trying to modify bag contents with python

So I've found out that I need a frame_id in my imu message to be able to visualize it in RViz, so I've been trying to add a frame_id to the bags I have. When I try reading through the messages in the bag I keep getting an error saying "AttributeError: 'str' object has no attribute 'secs'"

Here is the code and the output from the terminal:

image description

I think I've managed to establish that the issue is to do with the itemiterator (or whatever it's called) t, but I haven't had any luck trying to cast it to the secs type.

Any ideas?

2015-02-08 13:44:15 -0500 commented answer Issues with RViz and Displaying IMU data

That's probably the problem. I've only started using ros recently, so I don't know entirely what I'm doing here.

Anyway, I did try making the fixed frame field blank, but then I get Transform [sender=unknown_publisher] Unknown reason for transform failure.
How would I go about adding a frame_id?

2015-02-08 12:58:21 -0500 asked a question Issues with RViz and Displaying IMU data

I have a bunch of bags that were recorded from sensor nodes during an experiment a month ago. Right now I'm trying to get some sort of visualization working from the IMU data, beyond plotting the values in rqt. Ideally some sort of visualization of the acceleration vector.

I've been trying to use RViz to display the data, but haven't had any luck. When I try to add a visualization by topic it shows my sensor_msgs/imu_msg message on my imu_chatter topic, but when I select it I get an error saying "Transform [sender=unknown_publisher] For frame []: Fixed Frame [map] does not exist". It does have a green checkmark next to the topic.

image description

This is my first time using RViz, so I really don't know what's going on. Any ideas as to what is wrong?

2014-12-16 18:20:03 -0500 received badge  Popular Question (source)
2014-12-02 08:17:11 -0500 commented question Illegal Instruction when trying to run raspicam_node

When I looked at the userland GIT page it said to cross compile it, but after not having much luck with that (it compiled on my desktop, but wasn't sure what to do with it on the pi) I just let it compile and install on the pi. It actually didn't take as long as I was expecting it to, only ~20 min.

2014-12-02 08:13:24 -0500 received badge  Famous Question (source)
2014-12-02 08:12:28 -0500 commented answer Illegal Instruction when trying to run raspicam_node

ok, that gives me 0.3.0

2014-12-02 01:59:34 -0500 commented answer Illegal Instruction when trying to run raspicam_node

that gives me 0.26, but that's looking more like pkg-config's version than yaml-cpp's as it runs and gives 0.26 even if you just put pkg-config --version

2014-12-02 01:42:30 -0500 commented answer Illegal Instruction when trying to run raspicam_node

I did notice though that I don't seem to have any YAML environment variables if I run export | grep YAML

2014-12-02 01:40:28 -0500 commented answer Illegal Instruction when trying to run raspicam_node

This is what the output from pkg-config and dpkg look like: screenshot It looks like only version 0.3 is showing up.

2014-12-01 23:30:59 -0500 commented answer Illegal Instruction when trying to run raspicam_node

I just uninstalled version 0.5 and reinstalled version 0.3 from the repos and now catkin won't compile fully. It's throwing all kinds of errors about things not being as expected in YAML.

screenshot

2014-12-01 23:30:59 -0500 received badge  Commentator
2014-12-01 22:43:39 -0500 commented answer Illegal Instruction when trying to run raspicam_node

I think I might have installed the version 0.5 from elsewhere because it wasn't happy about the version 0.3 already installed.

2014-12-01 22:15:09 -0500 commented answer Illegal Instruction when trying to run raspicam_node

Ok, so it's /usr/arm-linux-gnueabihf/libyaml-cpp.so.0.5 causing the issue apparently

2014-12-01 21:38:59 -0500 commented question Illegal Instruction when trying to run raspicam_node

Well I don't think I have userland installed on the pi. I downloaded it and cross compiled it on my desktop like the github page said, but I haven't had any luck getting it on the pi yet.

2014-12-01 21:36:53 -0500 commented answer Illegal Instruction when trying to run raspicam_node

So that doesn't really give anything useful when it runs. It just says no debugging symbols found.

screenshot

2014-12-01 11:22:42 -0500 received badge  Notable Question (source)
2014-12-01 09:21:00 -0500 commented question Illegal Instruction when trying to run raspicam_node

I know I remember doing something with userland, but I don't know that I ever actually got it on the pi. I'll see about getting it setup.

Thanks

2014-12-01 08:44:39 -0500 received badge  Enthusiast
2014-11-30 22:31:21 -0500 commented answer Illegal Instruction when trying to run raspicam_node

I'll definitely check that out. Probably won't be able to look at it until tomorrow though.
Thanks