Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using reset to change the robot base frame #207

Open
SantoshiK-skulk opened this issue Oct 19, 2021 · 3 comments
Open

using reset to change the robot base frame #207

SantoshiK-skulk opened this issue Oct 19, 2021 · 3 comments

Comments

@SantoshiK-skulk
Copy link

SantoshiK-skulk commented Oct 19, 2021

I get an error while following this instruction from README for visual tools:
In your class' constructor add: visual_tools_.reset(new rviz_visual_tools::RvizVisualTools("base_frame","/rviz_visual_markers"));
Change the first parameter to the name of your robot's base frame

After looking into the ros_param.yaml file line: robot_base_frame: base_link ;
I changed base_frame to base_link

I get an error in CMakeFiles:
CMakeFiles/listener.dir/src/listener.cpp.o: In function main': listener.cpp:(.text+0x16fe): undefined reference torviz_visual_tools::RvizVisualTools::RvizVisualTools(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator >, std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator >, ros::NodeHandle)' collect2: error: ld returned 1 exit status

@JafarAbdi
Copy link
Collaborator

Hi @SantoshiK-skulk,

Do you mind sharing more info .? are you building rvt from source or are you using Debians ? which ros version are you using .?

The error you're having is a linking error which means you're including a header file but not linking the shared library against your executable, do you mind sharing your CMakeLists file .?

@SantoshiK-skulk
Copy link
Author

Hello @JafarAbdi
I am using ros melodic.
I am fairly new to ROS. I am not sure I understand the difference between using src or Debian to build it.
But I am pretty sure I have not used Debian in any of my commands.

@JafarAbdi
Copy link
Collaborator

What's the content of your CMakeLists.txt file .?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants