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

moonspacedancer's profile - activity

2023-06-06 16:22:25 -0500 received badge  Great Question (source)
2022-09-29 04:24:42 -0500 received badge  Famous Question (source)
2021-08-13 01:46:12 -0500 received badge  Good Question (source)
2021-05-08 14:11:09 -0500 marked best answer setup.bash every time?

the last few times I have done anything w ROS while doing beginning tutorials, I just say 'roscore' and it seems to all run fine, but now im watching a video and it seems like he's saying I need to do the setup.bash steps every time I want to use ros. 1. is it necessary to do the setup.bash steps every time? 2.if so, why have I been able to use turtlesim and other things just running roscore?

edit: I went into .bashrc and added source ~/catkin_ws/devel/setup.bash thinking that was what I was missing but then realized the one I was thinking of was already there, called 'source /opt/ros/kinetic/setup.bash'

  1. is that the one I need to run every time or should I also add the catkin setup to run every time as well?
  2. also, do I still now need to roscd everytime to enter the workspace?
2021-04-04 07:17:38 -0500 marked best answer rosanswers formatting

hey I have another question but this comes first, how can I paste some xml code here to format my question? I've tried the 101010 thing but it still deletes a big chunk of the code within < / node > tags

2020-11-12 12:29:00 -0500 received badge  Nice Question (source)
2020-11-12 02:36:14 -0500 received badge  Taxonomist
2020-04-07 02:29:34 -0500 received badge  Famous Question (source)
2020-01-24 09:09:44 -0500 received badge  Famous Question (source)
2020-01-14 22:51:44 -0500 received badge  Student (source)
2019-05-20 02:25:09 -0500 marked best answer first 'roscore' and a question arrises- like i'm 5

~beginner decrypting the workings of ROS~ hmm.. how to phrase this.. well, partly, I'm wondering

  1. if I need to also be in my catkin workspace before roslaunching...
  2. what is the difference between the catkin and roslaunch?
  3. I understand that the catkin is like a framework/build system basically for package management??
  4. So now that I'm learning about nodes, I'm wondering, how is the node different from a catkin built package?
  5. How are roslaunch and associated tools, different from catkin?
2019-05-20 02:24:42 -0500 received badge  Famous Question (source)
2018-10-11 16:18:15 -0500 marked best answer what is tf

Hey guys, I am all in all pretty new to computer science in general and learning ROS now. came across some tutorials on tf after completing the beginner tutorials. I want to use rososc but that's another story since it is not updated for kinetic and catkin and I'm still trying to work out how to make that work for me... anyway,

-explain what tf is used for as if I am a 5 year old. -why would I use it in developing robots? -what type of applications is it useful for?

2018-09-14 17:40:22 -0500 marked best answer writing a publisher and subscriber and unsure how to finish it

I am taking this edx course on robotics using ROS and our first project is "writing a node that subscribes to a topic and publishes to another. Your code will subscribe to a topic called 'two_ints', on which a custom message containing two integers can be broadcast. Make sure to familiarize yourself with the message format of this topic:

int16 a
int16 b

. Those two integers are to be added and the result published to topic 'sum' as an Int16 from std_msgs. "

ok this is what I have so far from stringing other examples I have seen together and guessing... very lost now though about how to connect these and also what the 'callback' thing does or if I need to define that..

#!/usr/bin/env python  
import rospy

from std_msgs.msg import Int16
from project1_solution.msg import TwoInts

def listener():
 rospy.init_node('project1_solution', anonymous=True)
 rospy.Subscriber("two_ints", TwoInts, callback)
 rospy.spin()

while not rospy.is_shutdown():
  msg = TwoInts()
  solution = msg.a + msg.b


def talker():
 pub = rospy.Publisher('Sum', Int16, queue_size=10)
 rospy.init_node('project1_solution', anonymous=True)
 rate = rospy.Rate(0.5) #.5hz



 while not rospy.is_shutdown():
  msg = Int16()

  pub.publish(msg)
  rate.sleep()

thank you, any tips or help would be great!

2018-07-04 01:41:43 -0500 received badge  Notable Question (source)
2017-11-29 17:20:26 -0500 received badge  Popular Question (source)
2017-11-18 15:28:45 -0500 received badge  Famous Question (source)
2017-10-26 09:19:24 -0500 received badge  Famous Question (source)
2017-10-15 15:27:42 -0500 received badge  Notable Question (source)
2017-10-05 04:18:36 -0500 received badge  Famous Question (source)
2017-09-27 19:03:08 -0500 received badge  Popular Question (source)
2017-09-26 15:35:22 -0500 received badge  Notable Question (source)
2017-09-21 19:06:10 -0500 commented question rviz urdf joint state publisher issue

@jayess I believe it starts up when I roslaunch urdf_tutorial display.launch model:=chatbot.urdf

2017-09-21 17:51:36 -0500 asked a question rviz urdf joint state publisher issue

rviz urdf joint state publisher issue I am making my first actual urdf beyond just using the ones from tutorials. there

2017-09-20 15:22:48 -0500 received badge  Popular Question (source)
2017-09-20 10:54:03 -0500 commented question writing a publisher and subscriber and unsure how to finish it

@jayess, I have completed 1-20 plus beginning tf tutorials and some urdf tutorials now. also reading 'gentle introductio

2017-09-20 10:19:23 -0500 asked a question writing a publisher and subscriber and unsure how to finish it

writing a publisher and subscriber and unsure how to finish it I am taking this edx course on robotics using ROS and our

2017-09-20 10:06:39 -0500 received badge  Popular Question (source)
2017-09-20 07:39:39 -0500 received badge  Autobiographer
2017-09-19 15:41:43 -0500 marked best answer simple Q about where to install packages

let's say I want to download ros-kinetic-ros-tutorials through

sudo apt-get install ros-<distro>-ros-tutorials

where do I need to be cd'd into at that time or does it matter? I am currently in catkin_ws/devel, is that going to be fine?

also, in general, when installing packages, does the same answer apply?

2017-09-19 15:06:32 -0500 edited question simple Q about where to install packages

simple Q about where to install packages let's say I want to download ros-kinetic-ros-tutorials through sudo apt-get in

2017-09-19 15:04:39 -0500 asked a question simple Q about where to install packages

simple Q about where to install packages let's say I want to download ros-kinetic-ros-tutorials through sudo apt-get in

2017-09-14 17:49:38 -0500 received badge  Notable Question (source)
2017-09-14 17:48:32 -0500 commented answer tf tutorial start_demo.launch wtf

@jayess it does solve the problem for me to switch to Mozilla as I state in the answer I accepted. thank you for your he

2017-09-14 17:40:39 -0500 marked best answer tf tutorial start_demo.launch wtf
 <launch>
  <!-- Turtlesim Node-->

      <node pkg="turtlesim" type="turtlesim_node" name="sim"/>
      <node pkg="turtlesim" type="turtle_teleop_key" name="teleop" output="screen"/>


        <param name="turtle" type="string" value="turtle1" />
      </node>

        <param name="turtle" type="string" value="turtle2" /> 
      </node>

    </launch>

What is wrong with this launch file? and I don't mean the spacing, I have reformatted it a bunch and already know xml formatting has to be spaced right and all that. it's got to be the code itself, which is directly from http://wiki.ros.org/tf/Tutorials/Writ... tf tutorial and I'm surprised I only saw one unanswered question about this issue, but I assume it's because the others know how to make xml syntax correct and just moved on.

2017-09-14 17:40:39 -0500 commented answer tf tutorial start_demo.launch wtf

@tfoote oh wow. now that is very interesting. I can't see what else to consider there since it only shows me the full te