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

danny5555's profile - activity

2019-05-20 02:13:28 -0500 marked best answer rostopic import error

I am following the Ros Nodes tutorial http://wiki.ros.org/ROS/Tutorials/Und... and have come across an error at point 6 in the website above^^.

When I try to run the '$ rosnode list' command in the new terminal window, I receive the error below:

import rostopic ImportError: No module named rostopic

and therefore cannot continue the tutorial.

Has anyone overcome this problem?

2019-05-20 02:11:29 -0500 marked best answer import error no module named srv

I am struggling to progress the error (below) which I have encountered when completing this part of the tutorial link text

I'm not sure why the script I have literally copied over won't work. I have spent an hour or so trying to figure it out but can't solve it..

The code message:

danny@danny:~/catkin_ws$  rosrun beginner_tutorials add_two_ints_server.py
Traceback (most recent call last):
  File "/home/danny/catkin_ws/src/beginner_tutorials/scripts/add_two_ints_server.py", line 3, in <module>
    from beginner_tutorials.srv import *
ImportError: No module named srv
danny@danny:~/catkin_ws$
2019-05-20 02:02:24 -0500 marked best answer cmake error catkin package

I am following the tutorials in order and have been asked to configure the catkin environment at stage 5 of this web page: link text

The error I am receiving is as follows (bold below):

 cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)


find_package(catkin REQUIRED COMPONENTS
   roscpp
   rospy
   std_msgs
   message_generation
)



## Generate messages in the 'msg' folder
add_message_files(
  FILES
  Num.msg
)

## Generate services in the 'srv' folder
 add_service_files(
   FILES
   AddTwoInts.srv
 )

## Generate actions in the 'action' folder
# add_action_files(
#   FILES
#   Action1.action
#   Action2.action
# )

## Generate added messages and services with any dependencies listed here
generate_messages(
  DEPENDENCIES
  std_msgs
)


catkin_package(
  ...
  CATKIN_DEPENDS message_runtime ...
  ...)



include_directories(

  ${catkin_INCLUDE_DIRS}
)

Everything above is copied exactly from the CMakeLists.txt file

2018-02-11 15:06:08 -0500 received badge  Famous Question (source)
2018-02-11 15:06:08 -0500 received badge  Notable Question (source)
2017-11-06 08:57:26 -0500 received badge  Famous Question (source)
2017-10-12 13:28:00 -0500 received badge  Famous Question (source)
2017-10-06 09:06:50 -0500 commented question cmake error catkin package

I have copied exactly what is in my CMakeLists.txt file.

2017-10-06 09:06:30 -0500 edited question cmake error catkin package

cmake error catkin package I am following the tutorials in order and have been asked to configure the catkin environment

2017-10-06 08:06:45 -0500 commented question cmake error catkin package

Thanks for the directory sourcing comments. I know everything is okay there now! I have added the CMakeLists.txt file a

2017-10-06 08:04:46 -0500 received badge  Editor (source)
2017-10-06 08:04:46 -0500 edited question cmake error catkin package

cmake error catkin package I am following the tutorials in order and have been asked to configure the catkin environment

2017-10-06 07:59:33 -0500 edited question cmake error catkin package

cmake error catkin package I am following the tutorials in order and have been asked to configure the catkin environment

2017-10-06 07:56:20 -0500 received badge  Notable Question (source)
2017-10-05 07:44:46 -0500 received badge  Notable Question (source)
2017-09-30 05:08:44 -0500 received badge  Popular Question (source)
2017-09-29 15:59:05 -0500 received badge  Popular Question (source)
2017-09-28 06:32:39 -0500 asked a question cmake error catkin package

cmake error catkin package I am following the tutorials in order and have been asked to configure the catkin environment

2017-09-23 15:46:38 -0500 received badge  Popular Question (source)
2017-09-21 08:13:12 -0500 asked a question import error no module named srv

import error no module named srv I am struggling to progress the error (below) which I have encountered when completing

2017-09-14 11:06:10 -0500 asked a question rostopic import error

rostopic import error I am following the Ros Nodes tutorial http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes and hav