ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

DannyMB's profile - activity

2021-03-22 06:24:25 -0500 received badge  Great Question (source)
2021-03-17 19:59:07 -0500 received badge  Nice Question (source)
2018-11-18 20:36:27 -0500 received badge  Good Question (source)
2018-07-26 16:46:06 -0500 received badge  Nice Question (source)
2018-07-26 16:09:13 -0500 received badge  Student (source)
2018-07-15 23:44:06 -0500 received badge  Taxonomist
2018-04-02 02:27:20 -0500 marked best answer problem creating directory: /opt/ros/kinetic

Hi, I am trying install ROS kinetic in my Raspberry Pi 3 and have this error when I execute this command

./src/catkin/bin/catkin_make_isolated --install -  DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic

I want say that is my first time that I working with RaspberryPi

-- catkin 0.7.4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/ros_catkin_ws/build_isolated/catkin
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:38 (file):
  file problem creating directory: /opt/ros/kinetic

Makefile:66: recipe for target 'install' failed
make: *** [install] Error 1
<== Failed to process package 'catkin': 
  Command '['make', 'install']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/catkin && make install

Command failed, exiting.

Anyody can help me? please

2017-06-04 00:15:12 -0500 received badge  Famous Question (source)
2017-06-04 00:15:12 -0500 received badge  Notable Question (source)
2017-06-04 00:15:12 -0500 received badge  Popular Question (source)
2017-03-23 15:38:24 -0500 received badge  Famous Question (source)
2017-03-09 15:06:52 -0500 received badge  Famous Question (source)
2017-02-17 11:44:45 -0500 received badge  Famous Question (source)
2017-01-08 10:01:31 -0500 received badge  Famous Question (source)
2017-01-06 03:47:37 -0500 received badge  Notable Question (source)
2017-01-06 03:47:37 -0500 received badge  Popular Question (source)
2016-12-24 13:19:43 -0500 received badge  Famous Question (source)
2016-11-23 10:17:04 -0500 received badge  Notable Question (source)
2016-11-07 02:05:18 -0500 answered a question Error: package 'rqt_graph' not found

I try to install it, but not the package is located

*> sudo apt-get install ros-indigo-rqt

*> sudo apt-get install ros-indigo-rqt-graph

*> sudo apt-get install ros-indigo-rqt-common-plugins

2016-11-07 01:28:03 -0500 asked a question Error: package 'rqt_graph' not found

Hi people!

i almost finish my first program with ROS and I want to watch the map with nodes and topic, but when I use rqt_graph I get this error returns

Error: package 'rqt_graph' not found

I am using this instruccion

rosrun rqt_graph rqt_graph

maybe the instruccion is wrong, I don't sure.

anybody can help me?


Edit: I try to install it, but not the package is located

sudo apt-get install ros-indigo-rqt
sudo apt-get install ros-indigo-rqt-graph
sudo apt-get install ros-indigo-rqt-common-plugins
2016-10-20 07:57:48 -0500 received badge  Notable Question (source)
2016-10-19 14:05:16 -0500 received badge  Popular Question (source)
2016-10-19 11:59:36 -0500 commented answer ImportError: No module named rospkg (python3) <SOLVED>

Thanks @ahendrix ! that was the solution!

2016-10-19 11:20:24 -0500 answered a question ImportError: No module named rospkg (python3) <SOLVED>

I can solve, I install "pytho3-rospkg"

sudo apt-get install python3-rospkg

But now, I have a new mistake

ImportError: No module named 'catkin_pkg'

I tried to install sudo apt-get install python3-catkin_pkg

But don't find any.

Any suggestions?

2016-10-19 01:48:45 -0500 commented question ImportError: No module named rospkg (python3) <SOLVED>

Yes, I have my worksapace, and all the proyect there is, for to run the file I use:

pi@raspberry: ~/ros_catkin_ws/src/ceres_pkg/src $ rosrun ceres_pkg Brujula.py

2016-10-19 00:51:22 -0500 asked a question ImportError: No module named rospkg (python3) <SOLVED>

Hi, I am using ROS Indigo in Raspbian Jessie on Raspberry pi 3, I am trying of read a compass (HC5883L) using library for read ports i2c (i2clibraries and quick2wire-python-api) but, when I run my file it given me this error:

Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/src/ceres_pkg/src/Brujula.py", line 5, in <module>
    import roslib; roslib.load_manifest('ceres_pkg')
  File "/home/pi/ros_catkin_ws/devel/lib/python2.7/dist-packages/roslib/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 50, in <module>
  File "/home/pi/ros_catkin_ws/src/ros/roslib/src/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named 'rospkg'

this is my code:

#!/usr/bin/python3 #I use python3 because quick2wire only run with this.
import sys
sys.path.append("/home/pi/ros_catkin_ws/src/ceres_pkg/src/quick2wire-python-api")
import time
import roslib; roslib.load_manifest('ceres_pkg')
import rospy
import math
from geometry_msgs.msg import Point
from i2clibraries import i2c_hmc5883l

class Brujula(object):
    def __init__(self):
        self.pub_ = rospy.Publisher("/Brujula", Point, queue_size = 1)
        return
    def start(self):
        loop_rate = rospy.Rate(1)
        while not rospy.is_shutdown():
            hmc5883l = i2c_hmc5883l.i2c_hmc5883l(1)
            hmc5883l.setDeclination(9,54)
            hmc = float(hmc5883l.getHeadingString())
            pos_msg = Point(hmc)
            self.pub_.publish(pos_msg);
            loop_rate.sleep()
        return

if __name__ == '__main__':
    rospy.init_node('Brujula_py', log_level=rospy.INFO)
    rospy.loginfo("%s: starting Brujulagps node", rospy.get_name())
    brujula = Brujula()
    brujula.start()

My first step was read the compas, like this:

#!/usr/bin/python
import sys
import time
sys.path.append("/home/pi/ros_catkin_ws/src/ceres_pkg/src/quick2wire-python-api")
from i2clibraries import i2c_hmc5883l
while True:
    hmc5883l = i2c_hmc5883l.i2c_hmc5883l(1)
    hmc5883l.setDeclination(9,54)
    hmc = float(hmc5883l.getHeadingString())
    print(hmc)
    time.sleep(1)

But, when I convert to ROS code, this its broken.

Thanks for your time, and I hope that someone can help me.


Edit: I can solve, I install python3-rospkg:

sudo apt-get install python3-rospkg

But now, I have a new mistake:

ImportError: No module named 'catkin_pkg'

I tried to install

sudo apt-get install python3-catkin_pkg

But don't find any.

Any suggestions?

2016-10-19 00:35:05 -0500 received badge  Enthusiast
2016-10-19 00:28:14 -0500 received badge  Notable Question (source)
2016-10-18 22:39:18 -0500 answered a question NameError: global name 'NAME' is not defined <SOLVED>

thanks @gvdhoom that's true, I did include a class, look at my final code C:\fakepath\Captura.JPG

2016-10-14 03:19:18 -0500 marked best answer NameError: global name 'NAME' is not defined <SOLVED>

Hi people! :) i am listening GPS's data and i want use them in another part of my code, for do Path Planing, but when I try to use them, it give me back this error

I defined variable global (global Lon, Lat) in many places like inside of def listener(), def backlatitud(): and def backlongitud() and it give back the same error.

Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/src/ceres_pkg/src/Controlador.py", line 25, in <module>
    listener()
  File "/home/pi/ros_catkin_ws/src/ceres_pkg/src/Controlador.py", line 20, in listener
    print Lat
NameError: global name 'Lat' is not defined

This is my code:

#!/usr/bin/env python
import rospy
from std_msgs.msg import String
global Lon, Lat

def backlatitud(data1):
    Lat = float(data1.data)
    #rospy.loginfo('Latitud %s', data1.data)
    return;

def backlongitud(data):
    Lon = float(data.data)
    #rospy.loginfo('longitud %s', Lon)
    return;

def listener():
    rospy.init_node('listener', anonymous=True)
    rospy.Subscriber("/latitud", String, backlatitud)
    rospy.Subscriber("/longitud", String, backlongitud)
    print Lat
    print Lon
    rospy.spin()

if __name__ == '__main__':
    listener()