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

edward's profile - activity

2020-04-22 16:08:30 -0500 received badge  Famous Question (source)
2020-04-22 16:08:30 -0500 received badge  Notable Question (source)
2019-11-13 18:54:05 -0500 received badge  Famous Question (source)
2019-08-27 09:57:38 -0500 received badge  Popular Question (source)
2019-08-12 10:27:57 -0500 received badge  Enthusiast
2019-08-09 06:03:19 -0500 received badge  Notable Question (source)
2019-08-09 06:03:19 -0500 received badge  Popular Question (source)
2019-08-08 10:54:04 -0500 asked a question reading ROS2 topic (DDS) outside of ROS scope

reading ROS2 topic (DDS) outside of ROS scope In want to read a ROS2 topic inside a Windows program (ROS not installed o

2019-08-06 02:39:57 -0500 asked a question get wall time in callback function of publisher in ROS2

get wall time in callback function of publisher in ROS2 I want to use the time in the callback function to publish a pre

2014-10-30 02:16:08 -0500 received badge  Notable Question (source)
2014-08-17 11:58:01 -0500 received badge  Popular Question (source)
2014-07-16 06:12:50 -0500 commented answer Cannot install ROS Hydro on Ubuntu 12.04

Hero of the day. Would never had figured this out myself (busy 3 hours trying to install Hydro besides Groovy)

2014-07-16 06:11:27 -0500 received badge  Supporter (source)
2014-07-16 03:19:05 -0500 asked a question Cannot install rosserial in Groovy

Since the binaries are broken in Groovy I installed rosserial from source (it is still broken, because indeed when I use the binaries the roslib does not seem to be correct; I cannot compile any Arduino source-files)

However, catkin_make did not compile correctly. rosserial_server_socket_node is the problem. Did not find anything similar on Google, so help is appreciated.

    [100%] Built target rosserial_msgs_generate_messages
In file included from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h:38:0,
                 from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/Session.h:46,
                 from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/serial_node.cpp:40:
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:55:9: error: ‘RequestMessageInfoResponse’ does not name a type
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:57:1: error: ‘Response’ does not name a type
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:60:9: error: ‘Response’ does not name a type
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:126:16: error: ‘RequestMessageInfoResponse’ is not a member of ‘rosserial_msgs’
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:126:16: error: ‘RequestMessageInfoResponse’ is not a member of ‘rosserial_msgs’
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:126:60: error: template argument 1 is invalid
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:141:18: error: ‘RequestMessageInfoResponse’ is not a member of ‘rosserial_msgs’
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:141:18: error: ‘RequestMessageInfoResponse’ is not a member of ‘rosserial_msgs’
/home/edward/catkin_ws/devel/include/rosserial_msgs/RequestMessageInfo.h:141:62: error: template argument 1 is invalid
In file included from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/Session.h:46:0,
                 from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/serial_node.cpp:40:
/home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h: In constructor ‘Publisher::Publisher(ros::NodeHandle&, const TopicInfo&)’:
/home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h:56:16: error: ‘struct rosserial_msgs::RequestMessageInfo’ has no member named ‘response’
In file included from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/Session.h:46:0,
                 from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/serial_node.cpp:40:
/home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h:58:14: error: ‘struct rosserial_msgs::RequestMessageInfo’ has no member named ‘response’
/home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h:64:69: error: ‘struct rosserial_msgs::RequestMessageInfo’ has no member named ‘response’
In file included from /opt/ros/groovy/include/ros/node_handle.h:35:0,
                 from /opt/ros/groovy/include/ros/ros.h:45,
                 from /home/edward/catkin_ws/src/rosserial/rosserial_server/src/serial_node.cpp:38:
/opt/ros/groovy/include/ros/service_client.h: In member function ‘bool ros::ServiceClient::call(Service&) [with Service = rosserial_msgs::RequestMessageInfo]’:
/home/edward/catkin_ws/src/rosserial/rosserial_server/src/topic_handlers.h:55:35:   instantiated from here
/opt/ros/groovy/include/ros/service_client.h:90:71: error: ‘struct rosserial_msgs::RequestMessageInfo’ has no member named ‘response’
make[2]: *** [rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/src/serial_node.cpp.o] Error 1
make[1]: *** [rosserial/rosserial_server/CMakeFiles/rosserial_server_serial_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable /home ...
(more)
2014-06-19 01:32:04 -0500 received badge  Famous Question (source)
2014-01-02 19:44:04 -0500 received badge  Notable Question (source)
2013-12-31 14:57:41 -0500 received badge  Popular Question (source)
2013-12-31 10:57:48 -0500 commented answer link c code with c++ ROS code

I also tried it by hand , compiled : gcc -Wall upd_to_ros3.o -o udp_to_ros_image -L/home/edward/catkin_ws/devel/lib/ -lros_cpp.o $(pkg-config --cflags --libs gstreamer-0.10) -lgstapp-0.10 -lopencv_core -L/opt/ros/groovy/lib/ -lrostime -limage_transport -lcv_bridge -lopencv_highgui This was successful.

2013-12-31 10:23:21 -0500 answered a question link c code with c++ ROS code

Thank you for your answer Jensenb. In the catkin CMakeList.txt I declared the following:

add_executable(imageconv_node src/ros_cpp.cpp ) <-- which is really the library (it has no main)
target_link_libraries(
/home/edward/c920/upd_to_ros3.o
<-- compiled before
${catkin_LIBRARIES}
)

Then get the following error:

CMake Error at CMakeLists.txt:115 (target_link_libraries): Cannot specify link libraries for target "/home/edward/c920/upd_to_ros3.o" which is not built by this project.

How to continue?

2013-12-31 00:50:15 -0500 received badge  Organizer (source)
2013-12-31 00:40:05 -0500 received badge  Editor (source)
2013-12-31 00:37:52 -0500 asked a question link c code with c++ ROS code

I am having trouble with linking c-code with C++-code. The C++ code describes a ROS-node. I made a program that can read a compressed image-stream over udp with gstreamer in c-code. Each image-buffer calls a C++-method of the ROS-node, which effectively converts the gstreamer stream into a ROS image stream.

I organised it as such:

  1. udp_to_ros3.c file that describes gstreamer-functionality,
  2. ros_cpp.cpp file with class and wrapper for C-code to indirectly call class
  3. ros_cpp.o.so dynamic library compiled by catkin_make from ros_cpp.cpp (location: /home/edward/catkin_ws/devel/lib/)
  4. im_imageconv.h header of wrapper-code, used in ros_cpp.cpp and upd_to_ros3.c

I compiled upd_to_ros3.c to upd_to_ros3.o, and ros_cpp.o.so is compiled by catkin_make.

Now try to link it with: gcc -Wall -L/home/edward/catkin_ws/devel/lib/ udp_to_ros3.o -lros_cpp.o $(pkg-config --cflags --libs gstreamer-0.10) -lgstapp-0.10 -o udp_to_ros_image

I get the following errors:

/home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to cv::fastFree(void*)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference toros::init(int&, char**, std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, unsigned int)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to ros::NodeHandle::~NodeHandle()' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference toimage_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to ros::Time::now()' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference toimage_transport::Publisher::publish(boost::shared_ptr<sensor_msgs::image_<std::allocator<void> > const> const&) const' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to image_transport::ImageTransport::~ImageTransport()' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference toros::NodeHandle::NodeHandle(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, std::map<std::basic_string<char, std::char_traits<char="">, std::allocator<char> >, std::basic_string<char, std::char_traits<char="">, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char="">, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const, std::basic_string<char, std::char_traits<char="">, std::allocator<char> > > > > const&)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to cv::waitKey(int)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference tocv_bridge::CvImage::toImageMsg() const' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to ros::spinOnce()' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference tocv::Mat::copySize(cv::Mat const&)' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference to cv::Mat::deallocate()' /home/edward/catkin_ws/devel/lib//libros_cpp.o.so: undefined reference toimage_transport::ImageTransport::advertise(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, unsigned int, bool)' collect2: ld returned 1 exit status

I think it needs the ROS-headerfiles, but maybe also the libraries (?) as used by catkin to be able to link the two files. But even when I add -I/opt/ros/groovy/include/ros/ it still complains about undefined ... (more)

2013-04-27 07:52:50 -0500 received badge  Taxonomist
2012-08-22 20:53:36 -0500 received badge  Notable Question (source)
2012-08-22 20:53:36 -0500 received badge  Famous Question (source)
2012-08-22 20:53:36 -0500 received badge  Popular Question (source)
2012-02-22 09:00:48 -0500 received badge  Famous Question (source)
2012-01-07 20:59:26 -0500 asked a question bug report rosserial arduino

I cannot file a bugreport because I cannot get into Trac, so here it is:

The latest release of rosserial for arduino (downloaded it 30 december) is not capable of subscribing to std_msgs/uint16 or std_msgs/uint8.

I wrote a program to test it. subscribe to and publish the same value. This will not work for uint16, but std_msgs::int16 was okay. The code will compile correctly but on the Arduino it gets misinterpreted (some value is read, which changes also!).

I suspect that the definition of UInt16.h in the std_msgs-directory in Arduino is not okay because it has changed . It used to have definition:

  union {
    signed char real;
    unsigned char base;
  } u_data;

and now not anymore.

But that does not hold because publishing uints with the new version is not a problem!

2011-11-08 11:11:14 -0500 marked best answer rosserial does not work on Ubuntu 11.10 Oneiric

Debs are still building for much of 11.10 -- these issues will get worked out.

Also, for future note, it is probably more helpful to note that you have a problem with "geometry" not "rosserial". rosserial is one of many, many packages that depend on geometry, but the rosserial developers are not going to be able to help you fix a problem with geometry building (and geometry is a legitimate dependency of rosserial).

If you want to temporarily build rosserial on a broken ROS install, you could do the following:

  1. Do a source checkout of rosserial (using hg).
  2. Edit rosserial_arduino/CMakeLists.txt and rosserial_arduino/manifest.xml to remove references to geometry_msgs.
  3. Run "make" in that local folder (make sure rosserial is on your ROS package path).

Note that none of the examples that use geometry_msgs will work.

2011-11-05 02:15:37 -0500 received badge  Notable Question (source)
2011-10-27 03:28:17 -0500 received badge  Popular Question (source)
2011-10-23 07:05:11 -0500 received badge  Nice Question (source)
2011-10-21 05:16:59 -0500 received badge  Student (source)
2011-10-20 22:13:57 -0500 asked a question rosserial does not work on Ubuntu 11.10 Oneiric

I installed Ubuntu 11.10 and tried to install ros. Only the ros-electric-common could be installed (not the desktop version) but I thought this may be enough for rosserial (To try with my Arduino communication).

But there is a dependancy-problem. Could not install rosserial because I was missing geometry, which can not be loaded because the package libglut3-dev is replaced by freeglut3-dev (see ticket 4963 from 5 months ago).

Could a developer change this dependency please, or give me a workaround for this problem, so I can use my Arduino with ROS. This was the only dependency that was NOK so this would help me very much