Ask Your Question

jimc91's profile - activity

2022-01-11 05:52:26 -0600 received badge  Famous Question (source)
2022-01-11 05:52:26 -0600 received badge  Popular Question (source)
2022-01-11 05:52:26 -0600 received badge  Notable Question (source)
2021-11-03 02:11:12 -0600 received badge  Famous Question (source)
2021-08-11 09:05:28 -0600 received badge  Famous Question (source)
2021-06-15 14:36:10 -0600 marked best answer Issues building transform broadcaster code

I am working through the Navgation Stack Tutorials on Ros.org.

I am using Ubuntu 16.04LTS and ROS Kinetic.

The issues occur when building the code (Step 5 from link below):

http://wiki.ros.org/navigation/Tutori...

I feel the issue is happening at Steps 3 and 4, when I am broadcasting and then using a transform.

I am being told to save the text files as src/tf_broadcaster.cpp and src/tf_listener.cpp.

But you cannot save a file using /, so I am saving them in my src folder as tf_broadcaster.cpp and tf_broadcaster.cpp.

I then edit the CMake.txt file in this folder to include the below text:

add_executable(tf_broadcaster src/tf_broadcaster.cpp)

add_executable(tf_listener src/tf_listener.cpp)

target_link_libraries(tf_broadcaster ${catkin_LIBRARIES})

target_link_libraries(tf_listener ${catkin_LIBRARIES})

I already know before I build my code that there will be an error as it is calling to add executable src/....

I build the code using the commands:

cd ~/catkin_ws/

catkin_make

I then get the error below:

CMake Error at robot_setup_tf/CMakeLists.txt:208 (add_executable):
  Cannot find source file:

    src/tf_broadcaster.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at robot_setup_tf/CMakeLists.txt:209 (add_executable):
  Cannot find source file:

    src/tf_listener.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: tf_broadcaster

CMake Error: Cannot determine link language for target "tf_broadcaster".

CMake Error: CMake can not determine linker language for target: tf_listener

CMake Error: Cannot determine link language for target "tf_listener".

-- Generating done

-- Build files have been written to: /home/jamescoady/catkin_ws/build

Makefile:2866: recipe for target 'cmake_check_build_system' failed

make: *** [cmake_check_build_system] Error 1

Invoking "make cmake_check_build_system" failed

What am I doing wrong here? Am I saving the files incorrectly in steps 3&4?

2021-06-15 13:02:19 -0600 received badge  Famous Question (source)
2021-06-15 13:02:19 -0600 received badge  Notable Question (source)
2021-05-26 15:44:44 -0600 marked best answer Turtlebot3 Navigating while continiously acquiring images

I am looking to begin to carry out some basic experimental work with my robot, Turtlebot3 Waffle-pi.

I am using ROS Kinetic & Ubuntu 16.04 LTS.

I have a raspberry pi camera in operation on the robot.

To date I have the camera functioning and acquiring images, but this is all done manually if that makes sense.

What I am looking to do now is use the map of the space that I built using the LiDAR on the robot, and to create a desired path around the space. As the robot will travel this predetermined path, I would want it to begin to acquire images every 2-3 seconds (this can be finalised later after some trial and error) and then save these images with a time stamp to a desired folder path.

To date, I have worked through ROS beginner tutorials, the Turtlebot3 manual and some other tutorials focused on using the raspberry pi camera (links are at the end of this post).

I have done some searching online for some material and guidance on the steps that I have laid out above but cannot seem to find anything, maybe I am looking in the wrong places....

Would anyone have some links or material that they could provide me with on this to get me started? Maybe I am getting ahead of myself and need to carry out some more basic testing, I am open to all ideas/guidance.

So in summary, I am looking to;

  • Create a map of a space (complete)
  • Choose a predetermined path for the robot to take (not started)
  • Have robot acquire images every set number of seconds, save the image with a time stamp to a desired folder path (not started)
  • Continue this imaging until path is complete (not started)

Any help would be greatly appreciated.

Thanks in advance.

http://wiki.ros.org/ROS/Tutorials

https://emanual.robotis.com/docs/en/p...

https://www.theconstructsim.com/publi...

2021-05-22 07:06:14 -0600 marked best answer Creating Msg & Srv issues

I am very new to ROS & Ubuntu and am working through the ROS tutorials.

Specifically, I am currently creating and customising my own packages (see link below for tutorial I am currently referencing.

http://wiki.ros.org/ROS/Tutorials/Cre...

I am using ROS Kinetic & Ubuntu16.04 LTS.

In section 2.1 I am trying to create a msg and edit the CMakeLists.txt file, but I am confused with some of the instructions.

I have opened CMakeLists.txt in my text editor but I am unsure where to add the following text.

So the instructions are as follows;

Open CMakeLists.txt in your favorite text editor (rosed from the previous tutorial is a good option).

Add the message_generation dependency to the find_package call which already exists in your CMakeLists.txt so that you can generate messages. You can do this by simply adding message_generation to the list of COMPONENTS such that it looks like this:

Do not just add this to your CMakeLists.txt, modify the existing text to add message_generation before the closing parenthesis

find_package(catkin REQUIRED COMPONENTS

roscpp

rospy

std_msgs

message_generation

)

I am unsure where to add this to the text file

The instructions also state the following steps:

Also make sure you export the message runtime dependency.

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

Find the following block of code:

add_message_files(

FILES

Message1.msg

Message2.msg

)

Uncomment it by removing the # symbols and then replace the stand in Message*.msg files with your .msg file, such that it looks like this:

add_message_files(

FILES

Num.msg )

By adding the .msg files manually, we make sure that CMake knows when it has to reconfigure the project after you add other .msg files.

I cannot find this in the text file

If anyone could provide guidance I would very much appreciate it. Sorry if this is a stupid question, but I am very new to this.

I have attached a snap of the CMakeLists.txt file for reference.

C:\fakepath\Page 1.png

C:\fakepath\Page 2.png

2021-05-22 07:06:08 -0600 received badge  Notable Question (source)
2021-05-22 07:06:08 -0600 received badge  Famous Question (source)
2021-05-22 07:06:08 -0600 received badge  Popular Question (source)
2021-02-13 10:57:29 -0600 marked best answer Customising Packages on ROS Tutorial Issue

I am very new to ROS & Ubuntu and am working through the OS tutorials.

Specifically, I am currently creating and customising my own packages (see link below for tutorial I am currently referencing, I am currently on section 6 (customising my package).

http://wiki.ros.org/ROS/Tutorials/Cre...

I am using ROS Kinetic & Ubuntu16.04 LTS.

In section 6.1.1 I am trying to add a description tag, but I am confused how to.

The instructions are as follows:

6.1.1 description tag

First update the description tag:

<description>The beginner_tutorials package</description>

Note: Change the description to anything you like, but by convention the first sentence should be short while covering the scope of the package. If it is hard to describe the package in a single sentence then it might need to be broken up.

I have tried to enter a one word description of the package but get an error.

So my description is as follows:

jamescoady@jamescoady-Inspiron-5579:~$ <rostutorial>The beginner_tutorials package</rostutorial>

I then get the error:

bash: syntax error near unexpected token `newline'

When I remove < & > from my line I still get an error.

jamescoady@jamescoady-Inspiron-5579:~$ rostutorialThe beginner_tutorials package /rostutorial

I then get the error:

rostutorial: command not found

What am I doing wrong? I know this is probably a very basic error on my behalf and I do apologise if it is an awfully stupid question!

2021-02-13 10:24:56 -0600 received badge  Popular Question (source)
2021-02-13 10:24:56 -0600 received badge  Notable Question (source)
2020-12-13 12:40:46 -0600 received badge  Notable Question (source)
2020-11-28 00:53:14 -0600 received badge  Famous Question (source)
2020-11-05 07:11:28 -0600 received badge  Famous Question (source)
2020-10-21 06:18:54 -0600 commented question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

As a test, try to use IPs everywhere. What is meant by this? Do I need to have IPs included in my code? My plan is to u

2020-10-21 06:18:48 -0600 commented question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

As a test, try to use IPs everywhere. What is meant by this? Do I need to have IPs included in my code? My plan is to u

2020-10-21 06:16:45 -0600 received badge  Notable Question (source)
2020-10-16 05:01:27 -0600 commented question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

Apologies, I have edited the post to include the problem I am having. The issue is being unable to send data from LabVIE

2020-10-16 05:00:54 -0600 commented question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

Apologies, I have edited the post to include the problem I am having. The issue is beng nable to send data from labview

2020-10-16 04:58:57 -0600 edited question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving... Has anyone else experience

2020-10-10 12:06:44 -0600 received badge  Popular Question (source)
2020-10-08 09:10:35 -0600 asked a question Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving...

Anyone been using Ros for LabVIEW toolkit? I have an issue I could use some help resolving... Has anyone else experience

2020-10-08 08:56:56 -0600 commented answer Anyone has used LabView-ROS Toolkit?

Has anyone sorted this issue, I have a similar issue...

2020-09-16 09:29:00 -0600 edited question Acquire images after robot has rotated - need help

Acquire images after robot has rotated - need help Hi All, I am looking for a bit of advice on some work I want to comp

2020-09-16 09:26:43 -0600 asked a question Acquire images after robot has rotated - need help

Acquire images after robot has rotated - need help Hi All, I am looking for a bit of advice on some work I want to comp

2020-09-15 07:29:34 -0600 commented question Cpp code translation to python help

Thanks for the reply. No I was hoping for advice/input on it, for someone to translate it for me would be of no benefit

2020-09-14 07:49:37 -0600 received badge  Notable Question (source)
2020-09-14 07:49:23 -0600 received badge  Popular Question (source)
2020-09-14 05:37:39 -0600 asked a question LabVIEW Publisher & ROS Listener Issue

LabVIEW Publisher & ROS Listener Issue I am having issues when trying to publish a string message from LabVIEW to RO

2020-09-11 11:04:06 -0600 asked a question Cpp code translation to python help

Cpp code translation to python help Hi All, My supervisor has given me some code that I can use with my project. Howeve

2020-09-11 11:01:29 -0600 asked a question Translating cpp code to python -need help

Translating cpp code to python -need help Hi All, My supervisor has given me some code that I can use with my project.

2020-08-23 21:16:49 -0600 received badge  Notable Question (source)
2020-08-20 09:32:39 -0600 marked best answer Using simulator for turtlebot before actual robot testing

Hi All,

I am looking to carry out testing through simulation for my Turtlebot3 robot, before I run the packages for my actual robot, just to see if any issues arise etc. I have the packages ready to go (launch file, python files etc.).

I just have a few questions:

  1. How do I bring up a simulator of my Turtlebot Waffle-pi version? (Do I use Rviz?). I should know this, but my training so far has just been with the Turtlebot and having the movement of the robot shown on Rviz, I have not actually simulated any movement as of yet.
  2. If I have a map of my lab, can I upload that to the simulation to carry out the simulated testing? Or can I only use pre-constructed maps from ROS libraries? I only need a 2D map for now and I have multiple maps built using my Turtlebot3 and SLAM.

Any help is greatly appreciated.

I am using ROS Kinetic and Ubuntu 16.04LTS, along with the Turtlebot3 Waffle-pi version.

2020-08-20 07:42:03 -0600 received badge  Notable Question (source)
2020-08-20 04:04:28 -0600 received badge  Popular Question (source)
2020-08-19 05:08:49 -0600 edited question Using simulator for turtlebot before actual robot testing

Using simulator for turtlebot before actual robot testing Hi All, I am looking to carry out testing through simulation

2020-08-19 05:08:03 -0600 edited question Using simulator for turtlebot before actual robot testing

Using simulator for turtlebot before actual robot testing Hi All, I am looking to carry out testing through simulation

2020-08-19 05:07:53 -0600 asked a question Using simulator for turtlebot before actual robot testing

Using simulator for turtlebot before actual robot testing Hi Guys, Hi All, I am looking to carry out testing through si

2020-08-19 04:37:38 -0600 marked best answer Issue with subscriber launch

I am working through tutorials and am having issues with launching my subscriber launch file.

I have created a launch file named odom_subscriber.launch and have the following text in the launch file:

<launch>
    <node pkg="read_odometry" type="odom_subscriber.py" name="odom_sub_node" output="screen" />
</launch>

I have created my python file named odom_subscriber.py and have the following text in it:

    #! /usr/bin/env python

    import rospy

    from nav_msgs.msg import Odometry

    def callback(msg): 

      print msg 

    rospy.init_node('odom_sub_node')

sub = rospy.Subscriber('/odom', Odometry, callback)

rospy.spin()

However, when I try to launch the launch file I get an error. I know I am not subscribing to anything just yet but I wanted to test it to see if all was good at this stage.

To launch the file I used the command:

roslaunch odom_subscriber.launch

I then get the error:

[odom_subscriber.launch] is not a launch file name
The traceback for the exception was written to the log file

Does anyone know where I have gone wrong?