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

canatan's profile - activity

2022-02-04 04:33:26 -0500 commented question multiple robots in rviz with different urdfs - robot models not showing

No but someone had a stage simulation that I ended up using.

2022-02-04 04:28:51 -0500 asked a question ros2 galactic mac m1 install libzstd error

ros2 galactic mac m1 install libzstd error Hi, I keep getting an error when trying to install ros galactic. Here are the

2019-01-16 02:33:48 -0500 received badge  Famous Question (source)
2018-12-19 06:05:50 -0500 received badge  Notable Question (source)
2018-12-19 06:05:50 -0500 received badge  Popular Question (source)
2018-10-02 09:29:31 -0500 asked a question multiple robots in rviz with different urdfs - robot models not showing

multiple robots in rviz with different urdfs - robot models not showing I have a stage simulation with four robots. I wa

2016-01-17 12:26:38 -0500 answered a question How to install ROS indigo in Ubuntu 14.04.3 LTS Desktop 64-bit?

It is most likely a DNS issue. If you are trying this over university or college internet try doing this at home.

2014-11-30 14:52:59 -0500 received badge  Famous Question (source)
2014-01-10 15:16:46 -0500 received badge  Notable Question (source)
2013-11-18 04:11:13 -0500 received badge  Popular Question (source)
2013-11-18 03:37:37 -0500 commented question plot ros topic in python code

I updated my question. I hope its better explained now. Thanks dornhege

2013-11-17 19:56:56 -0500 asked a question plot ros topic in python code

Hi Is it possible to plot values from a ros topic in python ? For example I want to leverage matplotlibs draw function and look at more than one topic as well as add some values of my own on the graph I know I could use rqt plot but that means I have to plot evening outside of my code as well as publish whatever extra values I want to a topic and then use rqt plot to plot those too.

I want to be able to plot stuff in the callback for the topic I subscribed to or something similar so data is updated the second I get it.

For example I subscribed to the odometry topic (msg type nav_msgs/Odometry) and want to plot the x y z of the position. I haven't been able to plot data as it comes.

What I have been able to do is the following: Collect all my data in a vector and then plot it at the end

Here's my plotting function:

  def plot_odom(self):

    x = []
    y = []
    plt.ion()
    plt.show()
    #self.odom.pose.pose.position.x
    print "in plot_odom"
    for odomx in self.odom_vec:
      #print "x ", x
      #print "y ", y
      #raw_input("continue")
      x.append(odomx.header.stamp.to_sec())
      y.append(odomx.pose.pose.position.x)
      plt.plot(x,y,'bo')
      plt.ylabel("odom")
      plt.draw()
      time.sleep(0.05)`

This seems to work okay in terms of giving an animation which is similar to what I would want if this were in the callback function.

I hope I've been able to explain myself well.

2013-11-14 12:10:54 -0500 received badge  Famous Question (source)
2013-11-14 11:29:00 -0500 received badge  Famous Question (source)
2013-11-14 11:29:00 -0500 received badge  Notable Question (source)
2013-11-05 14:58:01 -0500 received badge  Famous Question (source)
2013-10-11 07:42:20 -0500 received badge  Notable Question (source)
2013-08-20 04:10:52 -0500 received badge  Popular Question (source)
2013-07-31 07:34:13 -0500 asked a question create an executable with custom msgs

Hi,

I want to create a ros executable that uses a custom msg. I used catkin to make a package with a custom message. I ran catkin_make and copied the executable to another location the node seems to run fine (I put in print statements that are continuously executing). The topic I'm publishing is part of the rostopic list but when a rostopic echo mytopic results in the following: ERROR: Cannot load message class for mynode/mycustommsg. Are your messages built?

a rosmsg show mycustommsg shows the msg.

What should I be doing ?

Thanks.

2013-07-18 13:28:11 -0500 received badge  Taxonomist
2013-07-15 07:13:24 -0500 received badge  Popular Question (source)
2013-07-14 13:17:58 -0500 asked a question roscd works for package but rosmake doesnt

Hi,

I have a package i can roscd into but when i type [code] rosmake landshark_teleopFilter [/code] I get the following error [code] [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['landshark_teleopFilter']
[ rosmake ] Logging to directory /home/fatma/.ros/rosmake/rosmake_output-20130714-191533 [ rosmake ] Expanded args ['landshark_teleopFilter'] to: []
[ rosmake ] WARNING: The following args could not be parsed as stacks or packages: ['landshark_teleopFilter'] [ rosmake ] ERROR: No arguments could be parsed into valid package or stack names.

[/code]

could anyone point to where I'm wrong ? I used roscreate-pkg to make the packages and I'm using groovy.

if i roscd into the package directory and do a make it works.. but I need to create a launch file and that doesnt work with this .. because it gives me the same error.

2013-07-11 05:28:01 -0500 answered a question build ROS package with ICC or link ICC compiled file to package

So I ended up generating the .o file using icc and linking it using cmake to link it. I followed stackoverflow.com/questions/14776463/compile-and-add-object-file-from-binary-with-cmake/14873818#14873818 which totally worked. replacing add_library with rosbuild_add_library and so on.

2013-06-30 21:26:36 -0500 received badge  Editor (source)
2013-06-30 17:41:44 -0500 asked a question build ROS package with ICC or link ICC compiled file to package

Hi I made a custom ros package that i'm trying to build using the intel compiler. I followed the instructions in the wiki rosbuild (6.1) but that doesn't seem to work. I'm new to cmake and makelists and ros too.

If I include the compiler code at the beginning of the file then I get a boost error otherwise it just seems to loop over and over.

I also tried running make in the package folder. I've pasted part of the errors here.

/usr/include/boost/math/policies/policy.hpp(388): error: nontype "boost::math::policies::detail::is_valid_policy<t>::value [with T=A2]" is not a type name BOOST_STATIC_ASSERT(::boost::math::policies::detail::is_valid_policy<a2>::value); ^<="" p="">

/usr/include/boost/math/policies/policy.hpp(388): error: expected a type specifier BOOST_STATIC_ASSERT(::boost::math::policies::detail::is_valid_policy<a2>::value); ^<="" p="">

/usr/include/boost/math/policies/policy.hpp(388): error: invalid redeclaration of member function "boost::math::policies::policy<a1, a2,="" a3,="" a4,="" a5,="" a6,="" a7,="" a8,="" a9,="" a10,="" a11,="" a12,="" a13>::static_assert(<error-type="">, <error-type>)" (declared at line 387) BOOST_STATIC_ASSERT(::boost::math::policies::detail::is_valid_policy<a2>::value); ^<="" p="">

What I really need to do is use a function (foo()) that has been compiled with a an intel compiler in my ros package. If I like the .c file for that function is rosbuild_add_executable I'm rebuilding the file with gcc. If I use the enable_language function and link the .s file in rosbuild_add_executable I still get errors.

When linking the .s file I added [code] extern "C" {int foo();} [/code] to my .cpp

I got the following errors then

Building CXX object CMakeFiles/pleaseWork.dir/src/environmentSpecifics.cpp.o Building CXX object CMakeFiles/pleaseWork.dir/src/myDwa.cpp.o Building CXX object CMakeFiles/pleaseWork.dir/src/getRosParameters.cpp.o Building ASM-ATT object CMakeFiles/pleaseWork.dir/src/dwmonitorc.s.o /usr/bin/as: unrecognized option '-OS_PACKAGE_NAME="landshark_dwaICCIntegration"' make[3]: * [CMakeFiles/pleaseWork.dir/src/dwmonitorc.s.o] Error 1

(I'm sorry its called pleaseWork .. I just needed it to work)

What is the best way to go about this. Help please.

Thanks.

2013-06-25 23:58:28 -0500 received badge  Notable Question (source)
2013-06-24 23:08:58 -0500 received badge  Popular Question (source)
2013-06-24 15:12:33 -0500 commented question Using C code in ROS, including a .c file in ROS

done thanks

2013-06-24 15:12:07 -0500 answered a question Using C code in ROS, including a .c file in ROS

All I had to do was add the c99 flags to the cmakelist file to make it work. add_definitions(-std=c99)

2013-06-20 10:53:25 -0500 commented answer Rebuilding with Intel Compiler

@Robin I wanted to rebuild a package using an intel compiler as well could you please tell me what you did ? Thank you .. i'm new to ubuntu, makefiles and cmake so .. i'm using ros groovy... is it possible to only build one particular package using icc ? or one particular file and somehow use it?

2013-06-18 16:45:19 -0500 commented question Using C code in ROS, including a .c file in ROS

All I had to do was add the c99 flags to the cmakelist file to make it work. add_definitions(-std=c99)

2013-06-18 09:48:01 -0500 asked a question Using C code in ROS, including a .c file in ROS

Hi,

I have a .c file (and a corresponding .h file) that has a function I would like to call inside my ROS package.

I altered the cmakelist.txt to include the .c file rosbuild_add_executable(myNodeName src/mainFile.cpp src/cFile.c)

This does not build however if I change the file's extension to cpp and then change the corresponding rosbuild statement it builds fine.

I looked at "how-to-develop-interface-from-c-program-with-ros" and "shell-script-and-c-program-in-ros" on this site.

Is my only option to build a wrapper for the .c file ?

2013-05-20 09:30:44 -0500 answered a question groovy Catkin_make Error: could not find package configuration file

There's another question similar to this one : http://answers.ros.org/question/57444/catkin-cant-find-move_base/

I ran into a similar issue so I'm just going to switch to rosbuild for now. let me know if you solve it

2013-03-19 23:35:39 -0500 received badge  Student (source)
2012-11-15 21:23:38 -0500 received badge  Famous Question (source)
2012-11-15 06:46:19 -0500 received badge  Notable Question (source)
2012-11-15 05:56:24 -0500 received badge  Popular Question (source)
2012-11-15 03:28:38 -0500 asked a question what is the best way to install ros on ubuntu 12.10

Hi I tried installing ros on ubuntu 12.10 but the normal method doesn't work (i tried desktop and desktop-full). Has anyone installed ros on ubuntu 12.10. I saw some questions but i'm new to ubuntu and linux so those answers were a bit advanced for me.

Also when will groovy be released ? I thought it was nov 15. Should I just try installing the groovy barebones/stack instead ?

Thanks